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:
00745616
Vues:
16
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform