Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional GetFldState Excluding Specific Fields
Message
From
26/07/2001 09:42:45
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Conditional GetFldState Excluding Specific Fields
Miscellaneous
Thread ID:
00535632
Message ID:
00535632
Views:
64
Ok, I have ended up with a situation that I'm not sure how to handle. I have four Comboboxes which use a compare of the original value to the current value to determine if a change has been made (cFieldState). This is due to what I consider a limitation Combobox behaviour, namely that it thinks the value has changed whether it actually has or not. On the same form I have other objects that are not Comboboxes. I normally use GetFldState to determine if there were changes, but now need to use it in conjunction with the value compares to know whether to handle for changed data. Two scenerios of this:

Not coding for the Combobox state
If '2' $ getfldstate(-1) and thisform.cFormMode $ 'C'
   Do something
Else
   Do nothing
Endif
Coding only for the Combobox state
If ThisForm.cFieldState = .T. and thisform.cFormMode $ 'C'
   Do something
Else
   Do nothing
Endif
Since the Comboboxes always return a 2 whether they have changed or not, how to combine the two so that I ONLY check for the GetFldState of the fields which are NOT tied to the Comboboxes? FYI, there are many fields for the view. Or another idea? Thanks!

Regards, Renoir
Next
Reply
Map
View

Click here to load this message in the networking platform