Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a simple text file like xml?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01089149
Message ID:
01089151
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
It looks like it has to do somehting with how Dos interprets chr(13), replacing it with chr(13) + chr(10) works for me.

>I am trying to create a simple text file that would look like XML.
>
>Here is what I do:
>
>
>cMyStr = "<MYTAG>" + mytable.fld1 + "</MYTAG>" + chr(13) + ;
>         "<MYTAG2>" + mytable.fld2 + "</MYTAG2>" + chr(13) + ;
>         "<MYTAG3>" + mytable.fld3 + "</MYTAG3>"
>strtofile(cMyStr, "MYFILE.XML" )
>
>
>The problem is that when I look at the MYFILE.XML in DOS (typing TYPE MYFILE.XML) only the last tag is shown to be in the resulting file.
>
>What am I missing here?
>
>Thank you.
Zakaria al Azhar
My blog on Actuaris.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform