Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing a field value
Message
De
07/10/2002 07:37:49
 
 
À
07/10/2002 06:20:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00708296
Message ID:
00708307
Vues:
9
This message has been marked as the solution to the initial question of the thread.
>Hi All
>
>Another user on a network can change a particular field value in a dbf file from time to time. I want to check this field value now and then. What is the best way for me to pick up the new value?
>
>SET REFRESH appears to apply to all open files which seems a waste since I am only interested in a single field from a single file. USE the file, read the field, close the file, and then re-USE the file seems like a lot of work too.
>
>Is there a simple way to force VFP to re-read just the value of a particular field from a particular file?
>
>Using VFP7.
>
>TIA
>
>Jos

Jos,

If you have a form with a textbox, just form.textbox.Refresh() will do

If it's an open table
go recno('AliasOfTable') in AliasOfTable && refreshes buffer
? AliasOfTable.Field1
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform