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:
00655475
Views:
27
That was too simple! Thanks!!!


>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform