?
Solved

Informative Message during WHILE loop

Posted on 2004-11-21
8
Medium Priority
?
251 Views
Last Modified: 2013-12-18
Hi Everyone,

I have a WHILE loop that extracts records from an external database. This loop takes about 4 minutes to complete since lots of information is exchanged and updated between the 2 databases. My question is, how can I put a box with message on screen telling the user what's happening and that box shouldn't stop the WHILE loop, I mean like the box that Messagebox function generates but without the buttons on it.

Thanks in advance.

Cheers.
0
Comment
Question by:Faraj1969
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 300 total points
ID: 12638709
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 12639663
A simpler method, just as effective but not so pretty: put Print statements in your code, in the loop. Like this
    Print "Number of documents processed: " ndone

Sjef
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 12641108
FYI Sjef
>My question is, how can I put a box with message on screen telling the user what's happening and that box shouldn't stop the WHILE loop
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:Faraj1969
ID: 12641672
I'm already using PRINT statement. just wondering if I can make a messagebox in the middle of screen without stopping the loop and no buttons, the box should disappear once the loop is done.

Cheers
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 12642782
Thought so ;)

The progressbar stuff is unsupported Notes stuff, but everybody uses it. Its behaviour changes with every major release, there is one option no longer supported in R6. It works very well, so just follow the guidelines in the example above.
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 12647003
Yes, Sef, but there's also a new undocumented option in R6 allowing you to control whether it is a "dialog" style progress bar, or whether it is a status bar type of progress bar (like R6 uses when making replicas, or like browsers use when downloading a page).

I usually just avoid the mess with a "pretty" print statement that outputs dashes and equal signs to the status bar to indicate progress.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 12652438
It was already in the code I had, probably borrowed from
http://www.breakingpar.com/bkp/home.nsf/Doc?OpenNavigator&U=DCAADC900DA10EB287256AFB00152C78

Here's another Interesting Link, with quite some drawbacks of the progress bar:
http://www-10.lotus.com/ldd/nd6forum.nsf/0/dff4ca6896f5466585256d98005ece13?OpenDocument
0
 

Author Comment

by:Faraj1969
ID: 12652681
Many thanks guys, I appreciate your feedback. I'll use the one HemanthaKumar have provided for now, tho I'm not yet keen to it. Anyhow, in case I was able to write or find a code or something that does what I need exactly, I'll paste here at a later stage.

Kindest Regards.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question