Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing Data
Message
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Miscellaneous
Thread ID:
00906849
Message ID:
00906856
Views:
10
>I am storing an email address in an XML document. I then use the XMLTOCURSOR() function to create a cursor, which is then bound to a text box. The user can then change the email address. The data is then saved back to an XML document using the CURSORTOXML() function. The problem is when the email address is read from the XML document it creates a field the same length as the email address. If the user need to enter a longer email address that the current one the field is not long enough. I have tried to modify the cursor after it's been created but it causes an error. Does anyone know how I can use the XML functions in VFP8 SP1 and allow the user to enter and save the email address say up to 60 letters to the XML document.
>
>Thanks.
>
Hi John,

You can either generate XML with inline schema or convert XML into existing cursor with proper field(s) size.
? CURSORTOXML(ALIAS(), "lcXml", 1,0,0,"1")
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform