Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Showing status of program on screen
Message
From
23/05/2005 10:05:26
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01016672
Message ID:
01016727
Views:
9
>I have a number of routines which are invoked when a user clicks a button. The problem is the routines take quite a while to run and therefore I would like to display a message to the user of what is happening. Rather than use a Wait window are there any other techniques I could use?
>
>I have seen a form with a list box or something and everytime somethings happens it writes a record to a cursor which is displayed in a list box on the form.
>
>
>"Now printing report for style T675"      29/12/04 15:34:00
>"Now attaching report for style T567"     29/12/04 15:35:00
>
>
>Is this easy to do I cant remeber where I have seen this? Any help would be appreciated.

I've had this scrolling listbox in a couple of places where it would have to report about once per second or so, i.e. in long processes where there's something to report every once in a while, but nothing that could be expressed as a percentage. The code would look like this:
lParam cText
with this.listbox
   .additem(cText)
   if .listcount>10
      .removeitem(1)
   endif
endwith
...so I never displayed more than ten items.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform