Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML field lengths
Message
De
01/11/2004 21:50:52
 
 
À
01/11/2004 17:10:02
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00956743
Message ID:
00956833
Vues:
9
Jim,

> I am having a problem because this is the first time I've worked with xml and VFP. I am reading an xml file into a cursor. Some of the fields are only 2 characters long. I need to know how to make the fields longer? Do I need to include a schema with the file?

You didn't say HOW you are reading the XML into the cursor, but if you are using XMLTOCURSOR, you can use XML with an embedded schema.

If, however, you are using VFP8 or above, you can use the 8192 flag on the command to indicate that the cursor name you specify is a cursor that already exists (which you first create with CREATE CURSOR to set the fields just as you want them). With this approach, you don't need a schema in the XML.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform