Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why this code doesn't work?
Message
From
15/10/2003 19:06:31
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00839067
Message ID:
00839069
Views:
21
Assuming you are trying to get an answer of 5, make these changes
#define WLNORMAL  2
#define WLREVERSE 3
X=WLNORMAL+WLREVERSE   && took out quotes - these are constants already turned into numbers
? X                    && took out macro expansion
>I am trying to make a wrapper for a com object i have for wireless applications and I found something intereting and at the same time anoying
>
>check this code
>
>#define WLNORMAL  2
>#define WLREVERSE 3
>X='WLNORMAL+WLREVERSE'
>
>? &X
>
>
>this code doesn't work. I got the error:
>Variable 'WLNORMAL' is not found
>
>it doesn't happend all the time neither. some time the second one is the one not found like
>Variable 'WLREVERSE' is not found
>
>my questions:
>
>Why?
>is there any work around?
>any sugestions to achive this?
>
>thks a lot
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform