Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any Method code SETFLDSTATE for Default Values
Message
From
09/03/2001 07:44:40
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00482731
Message ID:
00483455
Views:
10
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform