Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#DEFINE won't define
Message
From
23/04/2009 04:46:00
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01396024
Message ID:
01396027
Views:
73
This message has been marked as a message which has helped to the initial question of the thread.
Bhav,

are you shure that the define is not defined somewhere else in front (on top?) of the define you mean? Try with a slightly differnt name

Search your project with the coderefernce tool

try also
#IFDEF YourDefine
 #UNDEFINE YourDefine
#ENDIF
#DEFINE YourDefine eYourValue
Update:

also
lnx=FILE_OK
?lnx
to check value

Agnes

>Hi all
>
>I have #defines in .H file (attached to this form class from the menu option) but it would not work any which way so I went on to copy and paste the whole thing in the code which uses it and still it won't work, wow! and it is not Friday yet!!!
>
>I don't know what I am doing wrong in this ultimate copy-paste of #defines
>
*------------------------------------
>*-- Constants to identify file status
>*--
>#DEFINE FILE_OK                  0
>#DEFINE FILE_BOF                -1
>#DEFINE FILE_EOF                -2
>#DEFINE FILE_CANCEL             -3
>#DEFINE FILE_NORECORDS          -4
>#DEFINE FILE_ONERECORD          -5
>#DEFINE FILE_ERRORHANDLED       -6
>*--
>*-- Constants to identify file status
>*------------------------------------
>
>
>LPARAMETERS tnRetVal
>
>
>LOCAL lnRetVal
>
>
>lnRetVal = DODEFAULT(tnRetVal)
>
>
>IF lnRetVal = FILE_OK
>
>and I still get the following error.
>
>Error #: 107
>Message: Operator/operand type mismatch.
>Line #: 25
>Code: IF lnRetVal = FILE_OK
>Method: afterdelete
>Object: afrmdetpurchasebill1
>
>one thing to notice is that this form class (where the above code is) is subclassed (no codes at all here) before being used in the app, if it matters.
>
>Please advise.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform