Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFldState not working in VFP 7
Message
From
03/10/2001 18:31:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SetFldState not working in VFP 7
Miscellaneous
Thread ID:
00563930
Message ID:
00563930
Views:
68
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
Next
Reply
Map
View

Click here to load this message in the networking platform