Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFldState not working in VFP 7
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
SetFldState not working in VFP 7
Divers
Thread ID:
00563930
Message ID:
00563930
Vues:
69
Hello,

When appending a record in a table, that has a default value for a field, the GETFLDSTATE(-1) function returns the number "4" for the fields that have been changed by the default value function.

I used SETFLDSTATE(lnFieldNumber, 3) in order to set the field state to 3 (appended, not changed). This worked in VFP 6, but not anymore in VFP 7.

Note that this does not work only if the field is changed by the default value of the table (it must be a database table).

Is this a bug in VFP 7, or is this a change to the function? Is there a workaround?
The reason I need this function to work is, that I do not want any changes to be detected by a simple append.

Thanks for your help in advance.
Christian Isberner
Software Consultant
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform