Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBF protection program error

Status
Not open for further replies.

giridpi

Programmer
Dec 5, 2003
33
IN
I am using foxpro2.6 dos. I want to protect my dbf . I am having program folling


CLOSE ALL
aaa = FOPEN("yourdbf.dbf")
qqq = FREAD(aaa,1)
?ASC(qqq)
=FCLOSE(aaa)

aaa = FOPEN("yourdbf.dbf", 2)
?FWRITE(aaa,CHR(0),1)
* You will see 1
=FCLOSE(aaa)

its working well

I am having some error reopen my database program following


aaa = FOPEN("yourdbf.dbf", 2)
vvv = REMEMBERED VALUE
=FWRITE(aaa,CHR(vvv),1)
=FCLOSE(aaa)

Syntax Error on "vvv = REMEMBERED VALUE"

Please say how can i solve this error.

Giri

 
REMEMBERED VALUE as variable name is not correct
Just pick a name of 1 word.
Be sure that you store the value of the first byte correct.

Rob.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top