Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getfldstate just for receiving focus?
Message
 
To
19/03/2001 13:40:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00486361
Message ID:
00486735
Views:
14
You were right Erik... Totally forgot about an old section of code
in the class "when" event. I meant to get rid of it when I started using
getfldstate but forgot to. I have never used getfldstate before this
and wasn't sure how it acted. I appreciate you help!

Joe

>>>>Using vfp5...
>>>>
>>>>It appears that getfldstate returns that a field has changed even though
>>>>all that happened was that it received focus. No actual data has
>>>>changed. Is this true?
>>>
>>>I don't have VFP 5 to test with anymore, but I'm pretty sure it's not true. It's sure not true in VFP 6 and 7. This would have screwed up my framework pretty good.
>>>
>>>Are you sure there is no class level code that's doing a REPLACE? Simply adding a Value_Assign method, for instance will do this... but that's VFP 6.
>>
>>In my "Save" button code....
>>
>>if getfldstate('prodname','products')<> 1 then
>> replace products.dpnamechg with date()
>>endif
>>
>>If I click the cursor in the textbox with
>>controlsource=products.prodname before clicking
>>"Save", getfldstate returns a change.
>
>I've never seen this behavior. Can you reproduce it in a simplified scenario? IOW, create an empty baseclass form, put one table in the DE, and put one base class textbox on the form bound to a field in the table. Then put a command button on the form that does a:
>
>MESSAGEBOX(GETFLDSTATE(-1))
>
>Click in the textbox and the click the button.
>In my tests, I don't get what you are reporting, but like I said, I'm using a later version of VFP.
Previous
Reply
Map
View

Click here to load this message in the networking platform