Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XMLToCursor
Message
De
18/06/2010 13:51:30
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01469592
Message ID:
01469645
Vues:
59
>I am trying to import an XML file into FoxPro, to ultimately convert to Excel or text. However, when I use XMLTOCURSOR, it truncates the lead 0's, since it assumes that fields with only numbers are numeric, even though some of them are used as ID fields. Although I found a workaround by using a Treeview, and converting it from there, is there an easier way to convert the XML file without losing the lead 0's?

You can create the cursor in advance, have these columns as character, then xmltocursor() to your existing cursor. That way Fox doesn't have to guess the schema, it will use yours.

I tried that only once, so YMMV.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform