Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid Event in a TextBox
Message
From
22/01/1999 15:01:34
 
 
To
22/01/1999 14:54:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00179019
Message ID:
00179197
Views:
32
>>Jim, I don't quite understand how transaction may wrap Valid event, but anyway use LostFocus event instead of Valid, especially if you use VFP3.
>
>Hi Edward,
>
>Actually the transaction isn't in the Valid Event but rather the form that the TextBox resides is in a transaction. The form is used to enter one record so the init of the form has a begin transaction and the save/exit button has the end transaction (there is also an exit without save button, which has rollback.) Sorry for the poor description, hope this helps.
>
>I'll see if I can get better results with LostFocus.

The general purpose of transaction is to combine several data updates together. I guess that the only place where you actually change data is cmdSave.Click routine, so you may put both BEGIN TRAN/ROLLBACK there.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform