Hi everyone... I have a code written in destroy as follows..
SELECT Log
SET ORDER TO IDNUM && IDNUM
SEEK(ALLTRIM(idnam))
IF FOUND()
IF FLOCK()
replace CntLog.log WITH .F.
ELSE
MESSAGEBOX("table Not locked",0+64,"Lock")
ENDIF
ENDIF
But everytime i close my form... it says "table Not locked", how come i cannot lock the table so that i cant replace CntLog.log with .F.? Thanks...
SELECT Log
SET ORDER TO IDNUM && IDNUM
SEEK(ALLTRIM(idnam))
IF FOUND()
IF FLOCK()
replace CntLog.log WITH .F.
ELSE
MESSAGEBOX("table Not locked",0+64,"Lock")
ENDIF
ENDIF
But everytime i close my form... it says "table Not locked", how come i cannot lock the table so that i cant replace CntLog.log with .F.? Thanks...