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:
00745739
Views:
21
>Single & works and also ? strtran("change "+chr(38)+chr(38)+" to >something", "&", "a") works. I'm not sure, why it fails using double &...

I had a problem with users putting that character into a field and then that field heading to XML...

I did some testing on a cursor and when:
testcursor.cNam = "this is the string && with double"

That works with strtran().

Then I took that field into string:
lcString = testcursor.cNam

That also worked when trying against strtran().

So it is a hard coded string. Possible bug in the interpretor/parser?

Thanks for all the replies.

--rab
--
Raymond A. Biondi
RSL
Previous
Reply
Map
View

Click here to load this message in the networking platform