Reputation: 15
I have some code lifted from IBM.
This creates an agent which is then run and it works.
In order to track what's going on I have inserted two message boxes.
The first:
MessageBox view.Toplevelentrycount & " Encrypted Documents", MB_OK, view.Name
The second is similar but contains different text. The issue is that these message boxes block the execution of the agent. I have researched this to find a page about threading in Lotus Script.
Which is How Synchronisation Works
This is the closest which I have found to pushing my message box onto another thread but I am unable to achieve my goal.
Ideally, I'd like the whole agent to run in its own thread as well...
Upvotes: 0
Views: 373
Reputation: 14628
If you want threading, rewrite your agent in Java. LotusScript can't do that.
The other alternative would be to look into one of the various solutions people have come up with for showing a progress bar. Here are two of them: Karl-Henry's progress bar using Win32 APIs, Erdun Eruc's progress bar using the print statement
On the other hand, there's also the Java route but without multi-threading - just using a progress bar there, too. It's a lot simpler than working with threads. Here's Jake Howlett's Java Progress Bar for Notes agents.
Upvotes: 1