Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Attaching A Progress Bar To TableUpdate?
Message
 
À
26/02/1998 15:25:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00081114
Message ID:
00082108
Vues:
31
>>>Is there a way to see or attach a progress bar on TABLEUPDATE()?
>>
>>I'm assuming you want this because you would be writing numurous records to disk with the table update. If so, how about using begin/end trans with getnextmodified, tableupdate() and code to update a progress bar? HTH
>
>
>Is there a way to determine how many records are buffered to be updated in a tableupdate()?

Use GETNEXTMODIFIED() in a DO WHILE loop like so:

mnnextmod=GETNEXTMODIFIED(0)
IF mnnextmod#0
mnupdates=1
DO WHILE .T.
mnnextmod=GETNEXTMODIFIED(mngetnextmod)
IF mnnextmod=0
EXIT
ENDIF
mnupdates=mnupdates+1
ENDDO
ENDIF

HTH
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform