Page 1 of 1

ERROR BASE\1003?

Posted: Wed Jan 11, 2006 3:50 pm
by deanomeano
I have written a save command in my program which will write variable values to a database. i get a base\1003 error variable not found REP_PROOF when i run the function, although the REP_PROOF is a database field. here is where the error occurs in the code

REPLACE REPDETS->REP_PROOF WITH mFileProof <-- error on this line
REPLACE REPDETS->REP_FINAL WITH mFinalFile
REPLACE REPDETS->REP_REPRIN WITH mReprint
REPLACE REPDETS->REP_FOR WITH mInvCon
REPLACE REPDETS->REP_GROUP WITH mInvGroup

the varible mFileProof is not declared in the function this code is contained in, but is declared in main(). all other replaces above this work fine, what could i be doing wrong?

Thanks for any help!

Posted: Thu Jan 12, 2006 12:13 pm
by Antonio Linares
Deano,

Have you double checked that REP_PROOF is a field name in your DBF ?

Posted: Mon Jan 16, 2006 9:09 am
by deanomeano
Antonio,

I have checked the DBF for the field and it does exist, I have also checked that the DBF has been placed in the correct file. Everything seems to be fine, could I have coded something incorrectly?

Many Thanks

Posted: Mon Jan 16, 2006 11:38 am
by Antonio Linares
Deano,

You may try to change this:

REPLACE REPDETS->REP_PROOF WITH mFileProof

into this:

REPDETS->REP_PROOF := mFileProof

Posted: Tue Jan 17, 2006 10:06 am
by deanomeano
Antonio,

I have solved the problem, thanks for the help