General information
Category:
Coding, syntax & commands
>My save routine contains code like this:
>
>IF !TABLEUPDATE(.t.,.f.,myTable)
>=aerror(myarray)
> do case
> case myarray(1) = 1585 && update conflict
> myRecno = GETNEXTMODIFIED(0)
> do while (myRecNo<>0)
>
>etc.
>
>This works fine most of the time, but occasionally I get an error 1596 "Table buffering is not enabled." on the line that calls GETNEXTMODIFIED. Table buffering *is* enabled. I can't figure out why the error is generated in GETNEXTMODIFIED but not in TABLEUPDATE. It seems to me that if table buffering were not enabled, the error would show up when I call TABLEUPDATE instead of waiting until the later call to GETNEXTMODIFIED.
>
>Any thoughts?
>
>Thanks, Ross
In your code, you are using the workarea parameter in your TABLEUPDATE() but not in your GETNEXTMODIFIED(). Maybe the current workarea is not "myTable" (ie. add "myTable" to GETNEXTMODIFIED()).
-Doug-
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