Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Showing status of program on screen
Message
De
23/05/2005 10:05:26
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01016672
Message ID:
01016727
Vues:
10
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform