Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using a Schema
Message
De
14/02/2002 15:40:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Divers
Thread ID:
00620017
Message ID:
00620334
Vues:
12
Fabio,

Another option, if you already *know* the schema of the cursor, is to create an empty cursor and then use the new flag for XMLTOCURSOR() (the new flag was introduced in SP1 ... it is 8192) ... this will append to the existing cursor and thus get all the fields and data types correct.

~~Bonnie


>Hi Brian,
>
>Besides what Travis said, you should be aware of the importance of using schemas in order to avoid the "best guess" heuristic VFP uses when converting XML to a cursor (XMLTOCURSOR()). When you do not use schemas in your XML and use the XMLTOCURSOR() function to generate a cursor from the XML, VFP can fail in discovering what data types and sizes your fields have.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform