ERROR BASE\1003?

Post Reply
deanomeano
Posts: 22
Joined: Wed Nov 09, 2005 9:43 am
Contact:

ERROR BASE\1003?

Post 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!
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Deano,

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

Antonio Linares
www.fivetechsoft.com
deanomeano
Posts: 22
Joined: Wed Nov 09, 2005 9:43 am
Contact:

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Deano,

You may try to change this:

REPLACE REPDETS->REP_PROOF WITH mFileProof

into this:

REPDETS->REP_PROOF := mFileProof
regards, saludos

Antonio Linares
www.fivetechsoft.com
deanomeano
Posts: 22
Joined: Wed Nov 09, 2005 9:43 am
Contact:

Post by deanomeano »

Antonio,

I have solved the problem, thanks for the help
Post Reply