Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't use constants with macro substitution?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00655467
Message ID:
00655472
Views:
24
This message has been marked as the solution to the initial question of the thread.
The compile time constants aren't recognized between quotation marks. You can use square brackets as string delimiters.
#define TXT_MACHINETYPE 'Lathe'
search_string = [machine.type=TXT_MACHINETYPE]
...
>This doesn't work in vfp7 unless I eliminate the constant. Any
>way around it?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform