Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Illegal conversion by XMLTOCURSOR() causes error
Message
De
11/11/2001 08:02:50
 
 
À
08/11/2001 15:13:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00579330
Message ID:
00580237
Vues:
23
Hi Andrus,

you'll need to supply a schema to xmltocursor in order to force data types and length.

Hank

>I use IE data binding from XML data island with data types.
>The ONLY way to implement this seems to use dt:dt attribute.
>
>However, FoxPro 7 XMLTOCURSOR() ignores data types. It converts string data to numeric. For wide fields, this causes error.
>
>How to avoid error in the following code ?
>
>How to create FoxPro cursor using xmltocursor() so that invoicenumber is numeric field ?
>
>Remove spaces after < characters when trying to run the following code.
>
>
>cXML = '< DocHead xmlns:dt="urn:schemas-microsoft-com:datatypes"> < row>< invoicenumber dt:dt="string">123456789012345678901< /invoicenumber>< /row>< /DocHead>'
>
>* Result:
>* XML parse error: field width or number of decimal places is invalid.
>* Is this bug or "behaviour by design"
>xmltocursor( cXML )
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform