Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Progress bar for SCAN FOR
Message
De
10/09/2002 03:50:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00698437
Message ID:
00698653
Vues:
13
>Hi everybody,
>
>I have a Global Replace form. In this form user may write a FOR condition. I then run a SCAN FOR command to do replace...
>
>I'm thinking about adding a progress bar... However, I don't want to count number of records prior to executing this command.
>
>I'm wondering, what can you advise here? Do you think, it would not be a much of confusion, if I would just use total number of records in the file to set maximum value of the progress bar?
>
>Thanks in advance.

Nadya,

If you do not want to count the records and still want the progress bar, you may scan all, update the therm and skip the records you do not want to process

I use this technique sometimes
local n, t
t = therm(reccounct(), '...')
n = 0
scan all
    n = n + 1
    =t.Update(n)

   if( !Record_I_want_to_process )
       loop
   endif

   && normal processing

endscan
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform