Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problema com caracter
Message
From
30/07/2003 07:45:36
 
 
To
29/07/2003 20:46:14
Cleber Ferrari
Capta Tecnologia
Brazil
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00814678
Message ID:
00814852
Views:
8
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform