Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which method to save changes to a field
Message
From
18/01/2008 19:44:28
 
 
To
18/01/2008 18:32:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01283155
Message ID:
01283171
Views:
20
Hi James,

When I had a similar requirement (no buffering, had to write to tables a FPD app still accessed), I added a property called 'OriginalVal' to each control.

Populated 'OriginalVal' in GotFocus(), compared in LostFocus(), populated a cursor with appropriate info and updated the logging table when the transaction was saved.

Bruce

>No, I hadn't -- because I had never heard of it.
>
>However, for the case in hand, the table isn't being buffered, so I don't think it applies.
>
>>>I have a few fields on a stand alone table where I want to save a log of all changes.
>>>
>>>Do I write to the log file in the VALID method? And do I know that I need to do so by saving a flag that INTERACTIVECHANGE was called (in case they just tabbed through)?
>>
>>Did you already read the help on GETFLDSTATE() ?
Previous
Reply
Map
View

Click here to load this message in the networking platform