After setting STEP ON as your signature suggests, check to be absolutely sure that the correct table is SELECTed at the time you get your error message.
HTH
Barbara
>I have a weird situation in which my program runs fine from the project, yet I get a 1596 error "Table buffering not enabled" message when running the .exe. The code in this routine is as follows:
>
>set multilocks on
>lSuccess=CURSORSETPROP("Buffering", 5, "selhdr")
>IF lSuccess = .T.
>
>ELSE
> =MESSAGEBOX("Buffering NOT successful!",0,"Operation Status")
>ENDIF
>lSuccess=CURSORSETPROP("Buffering", 5, "seldetail")
>IF lSuccess = .T.
>
>ELSE
> =MESSAGEBOX("Buffering NOT successful!",0,"Operation Status")
>ENDIF
>
>dodefault()
>
>THe error message states "You have attempted to use the GETNEXTMODIFIED( ) function, which requires table buffering to be enabled.
>Enable table buffering or use a different function."
>
>The form BUFFFERMODE property is set to Optimistic and the program executes correctly if I run it from the project. Is there something else I should be aware of? Any assistance would be greatly appreciated.
>
>Barry