Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ghost #DEFINE
Message
De
15/04/2003 09:00:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Ghost #DEFINE
Divers
Thread ID:
00777662
Message ID:
00777662
Vues:
45
I have been receiving the following set of errors when I build builders.vcx.
Compiling c:\devtools70\builders.vcx
#DEFINE TAB    CHR(9)
Error in line 538 of build_options.arraytocontrol (record 2): Constant is already created with #DEFINE.
#DEFINE TAB    CHR(9)
Error in line 538 of basebuild.scancontrols (record 4): Constant is already created with #DEFINE.
#DEFINE TAB    CHR(9)
Error in line 538 of basebuild.fillaproparray (record 4): Constant is already created with #DEFINE.
#DEFINE TAB    CHR(9)
Error in line 538 of basebuild.defaultstr (record 4): Constant is already created with #DEFINE.
#DEFINE TAB    CHR(9)
Error in line 538 of basebuild.Init (record 4): Constant is already created with #DEFINE.
#DEFINE TAB    CHR(9)
Error in line 538 of build_multi.colslines (record 6): Constant is already created with #DEFINE.
#DEFINE TAB    CHR(9)
Error in line 538 of build_multi.arraytocontrol (record 6): Constant is already created with #DEFINE.
#DEFINE TAB    CHR(9)
Error in line 538 of build_grid.methodempty (record 8): Constant is already created with #DEFINE.
Of course I do not have the same error on the same line in each set of methods.

We program for many languages and make extensive use of INCLUDE files. When coding I #DEFINE locally until I am happy that all messages are suitable then the #DEFINE statements are moved to the appropriate *.H string files. I seems that a ghost of one of these #DEFINE statement is floating in my class library.

I have packed the builders.vcx file. I have searched in vain for the offending statement in the vcx file method fields using the class designer and the vcx file fields directly.

Record #4 is the only one that has 538 lines or more. It's line 538 is a comment line in a method header :
*  returns      : number of builder classes found
The conplete header is :
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*  method       : Basebuild : Loadbuilders
*  description  : looks up classes from builders.vcx and
*               : newobject's them into array aBuilders
*  returns      : number of builder classes found
*  notes        : 
*  future       : 
*  revisions    : 
*  written by   : Don Simpson  02/10/03
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
#INCLUDE BUILDERS.H
local nNoClass,nClass
Which you may notice is not in any of the four methods noted in the error message.

Please help.
Best Regards
Don Simpson
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform