Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Some question about .NET and VFP
Message
De
21/03/2002 16:29:11
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00634889
Message ID:
00635733
Vues:
13
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform