Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test if a field in a grid record has changed
Message
De
19/08/2009 18:31:31
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01418565
Message ID:
01419110
Vues:
74
>Thank you all for your input. This was great.
>Colombo.

One more addition -- a quick way to test if there are any changes of ANY kind in the current record:

SET EXACT OFF
IF REPLICATE('1',256) != GETFLDSTATE(-1)
***There was a change
ENDIF


To see if there are changes in records anywhere in the current table, use

nModifiedRecordNumber = GetNextModified( nStart [, cAlias | nWorkArea ] )

nstart = 0 (find first changed record);
nstart = positive number (find changed record from the nstart -position)

Note: you need to use table buffering for GetNextModified()
Pertti Karjalainen
Product Manager
Northern Lights Software
Fairfax, CA USA
www.northernlightssoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform