Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with character sting containing '&&'
Message
From
22/04/2003 11:21:18
 
 
To
22/04/2003 11:19:21
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00780155
Message ID:
00780158
Views:
14
>Hi All,
>
>I am using VFP7 SP1 and am having a problem creating a character sting variable that contains two ampersand characters.
>
>If I do the following from the command window, I get an error "Command contains unrecognized phrase/keyword"
>
>
>lcText = "something && test"
>
>
>Anyone know how to avoid this?
>
>TIA
>
>Mike


One way to do it:
lcText = "something " + Chr(38) + Chr(38) + " test"


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform