Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strtran() and double-ampersand
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00745610
Message ID:
00745616
Views:
15
VFP parser mistakenly recognizes && inside a string literal as begining of the inline comment. You can split string literal so there's no && for parser to find.
? strtran("change &" + "& to something", "&", "a")
>? strtran("change && to something", "&", "a")
>
>fails with "command contains unrecognized phrase/keyword".
>
>Why?
>
>--rab
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform