Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any Method code SETFLDSTATE for Default Values
Message
De
09/03/2001 07:44:40
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00482731
Message ID:
00483455
Vues:
9
Barbara,

I understand that setfldstate() will be the command that sets the field states to 3 for the fields that have default values. I was hoping someone had faced this problem and had written code to scan all the fields in a view/table that had default values defined and on those fields used setfldstate to set them from 4 to 3 for the reasons I've mentioned. The framework "cancel" button refers to the common logic that is called when any of the fillowing occurs: the canel button on a form is used to exit an add record process, attempts to close the form, or move onto another record. The framework in all these cases executes code to determine if the current appended record has had any changes make to it. If so, it prompts "Save Changes". I don't want this prompt if the only changes made to the appended record are from default values being applied. I have concluded my best approach, after a new record is appended, is to just loop through all the fields and set them with setfldstate.

Thank you for offering a helping hand. It is appreciated.

Gary.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform