Information générale
Catégorie:
Codage, syntaxe et commandes
>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-
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement