Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strtran() and double-ampersand
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00745610
Message ID:
00745739
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform