Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problema com caracter
Message
De
30/07/2003 07:45:36
 
 
À
29/07/2003 20:46:14
Cleber Ferrari
Capta Tecnologia
Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
00814678
Message ID:
00814852
Vues:
9
>Alex,
>
>Ótima ideia a sua ! Tratar apenas o "XML" é muito mais fácil do que fazer algo durante o select !
>
>Fiz uma função para tirar os caracteres sujos :
>
>
>Function f_tiracaractersujo
>	Parameters par_string
>	Local i
>	For i=1 To 31
>		If i<>9 .And. i<>10 .And. i<>13
>			par_string=Strtran(par_string,Chr(i),"")
>		Endif
>	Endfor
>	Return par_string
>
>
>Isso teoricamente resolverá. Vou testar bastante e te conto o resultado.
>
>Obrigado


Porque não ChrTran()?
x = "abcdefg"
? Chrtran(x,"abc","")
No seu caso será mais como:
cSujos = Chr(1)+Chr(2)+...+Chr(31)
lcXML = Chrtran(lcXML,cSujos,"")
StrToFile(lcXML,"c:\temp\archivo.xml")


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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform