ERROR BASE\1003?

ERROR BASE\1003?

Postby deanomeano » Wed Jan 11, 2006 3:50 pm

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!
deanomeano
 
Posts: 22
Joined: Wed Nov 09, 2005 9:43 am

Postby Antonio Linares » Thu Jan 12, 2006 12:13 pm

Deano,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby deanomeano » Mon Jan 16, 2006 9:09 am

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
deanomeano
 
Posts: 22
Joined: Wed Nov 09, 2005 9:43 am

Postby Antonio Linares » Mon Jan 16, 2006 11:38 am

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

Postby deanomeano » Tue Jan 17, 2006 10:06 am

Antonio,

I have solved the problem, thanks for the help
deanomeano
 
Posts: 22
Joined: Wed Nov 09, 2005 9:43 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 60 guests