FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ERROR BASE\1003?
Posts: 22
Joined: Wed Nov 09, 2005 09:43 AM
ERROR BASE\1003?
Posted: Wed Jan 11, 2006 03: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!

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ERROR BASE\1003?
Posted: 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
Posts: 22
Joined: Wed Nov 09, 2005 09:43 AM
ERROR BASE\1003?
Posted: Mon Jan 16, 2006 09: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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ERROR BASE\1003?
Posted: 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
Posts: 22
Joined: Wed Nov 09, 2005 09:43 AM
ERROR BASE\1003?
Posted: Tue Jan 17, 2006 10:06 AM

Antonio,

I have solved the problem, thanks for the help

Continue the discussion