Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Some question about .NET and VFP
Message
From
21/03/2002 16:29:11
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00634889
Message ID:
00635733
Views:
14
>>4. Does VFP native control able to bind XML without convert to cursor?
>
>No.

Well, you can, sort of. Create a new form, and put this in the init:

THISFORM.AddProperty("oXML")
THISFORM.oXML = CREATEOBJECT("Microsoft.XMLDOM")
THISFORM.oXML.async= .F.
THISFORM.oXML.LoadXML("value")

THISFORM.AddObject("text1","textbox")

THISFORM.text1.ControlSource = "THISFORM.oXML.DocumentElement.text"
THISFORM.text1.Visible = .T.

Then, drop a button on the form and put this in the click event:

MESSAGEBOX(THISFORM.oXML.DocumentElement.text)

Run the form, and change the value of the textbox, and click the button.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform