General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
>First your tableUpdate is assuming that the correct work area is selected. It is advisable to use all the arguments for TableUpdate and TableRevert to prevent bugs of something changing a work area on you.
>
>TableUpdate(1,.F.,"MyCursor")
>
>Second your getfldstate is telling you that you are on a new blank record in the cursor. I believe you want to Requery("MyCursor") for teh local view to clear it of the curretn status and update it from the original tables.
Thanks Jim, it worked. But aren't those the default values according to the MSDN documentation? My previous code was:
select lv_sea310
llRetorno = Tableupdate(1)
My actual code now is:
select lv_sea310
TableUpdate(1,.F.,"lv_sea310")
Have to remember VFP what are the defaults?
Regards and thanks
Oscar
Previous
Next
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