Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tableupdate
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00189486
Message ID:
00189516
Views:
9
>>I have a table in which in which I set the buffermode to 5 (opt table)
>>
>>On the form I have a command button to delete the current record with some of the following code
>>
>>delete
>>* code to go to next record depending on BOF and EOF
>>=tableupdate(.T.,.T.,'tablename')
>>* refresh and other code
>>
>>In order for this to properly work I must execute the code twice( click the delete button twice)
>>The only way this will work properly on the first try is to move the tableupdate command right below the delete therefore
>>
>>delete
>>=tableupdate(.T.,.T.,'tablename')
>>* code to move record
>>* refresh and other code
>>
>>Why Why Why ????????????????????????????
>>
>>Also the code will execute correctly the first ti,e if I set buffermode to 3 (opt Row Buf)
>
>If you are using VFP 5, the syntax changed. The first parameter for TableUpdate() is numeric. Check the VFP help for implications for the different types of buffering.

The first parameter can either be logical or numeric. If logical it still works the way it used to. Numeric 0 (zero) and 1 (one) now work like .F. and .T. used to, respectively, but there's a third option 2 which tells VFP not to fire an error if the update fails. (According to help that's what it does. I'm still only using .T. and .F. in VFP 6.0.)

Cheers,
Rich.
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform