Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Good books or web site
Message
From
01/05/1997 09:20:19
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00030296
Message ID:
00030440
Views:
68
>>>So in the "SAVE/OK" button, I shuold put validation in under the ~code~ option and add my own manual code?
>>
>>I would say it is in the Click() event of the command button. However, that Click() event might call a method in your form if you want.
>>
>>I'm leaving for Toronto now. Good luck, I'll check back tonight.
>
>Thanks for your help-- I am still progressing thru this exercise.
>I issue appen blank have the user fillin his name and he clicks on 'OK' but I am confused about using the =CURSORSETPROP("Buffering", 2)
>= TABLEUPDATE(.T.) and can't get that to work. I want to force the user to enter his name before the app proceeds.

see, when the buffering is started, =tableupdate(.t.) will update whatever changes you have done to table and =tablerev(.t.) will discard the changes. If you will issue neither of two and still made changes then when you close the file it will give you error.

So what you can do is ask the name, (may be you don't want duplicate names enetered or whatever, check the validity) and in Ok/save button issue =tableupdate(.t.) and in cancel button (=tablerev(.t.))

hope this helps
Previous
Reply
Map
View

Click here to load this message in the networking platform