Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional STRTRAN
Message
De
09/02/2015 13:13:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01615018
Message ID:
01615032
Vues:
58
Thanks, Sergei. Can you direct me to some documentation on how to preserve those illegal characters?

>There are ways to represent illegal characters in XML. If you don't care about preserving them, use CHRTRAN
>
>lcIllegalCharacters = "..."
>lcReplacemets = REPLICATE("*", LEN(lcIllegalCharacters)) 
>... CHRTRAN(cField, lcIllegalCharacters, lcReplacemets)
>
>
>>I want to check fields in a table for illegal characters and replace them with '*'. This is because I'm running a program that converts table data to XML and the program chokes on illegal characters.
>>
>>Is there a way to say something like this:
>>
>>
>>replace all cField with STRTRAN(cField, IllegalCharacter, '*')
>>
>>
>>Thanks,
>>
>>Yossi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform