General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only