` Creating XML object with OLE (Brett Cammack ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Creating XML object with OLE
2000-02-16 -- Brett Cammack
 
> I want to use the XML object (Microsoft.XMLDOM), so I use the OLE >control to create the XML Object : > > ?OLE{PROP:Create} = 'Microsoft.XMLDOM' > ?OLE{'async') = FALSE > root = ?OLE{'documentElement'} ! get the sub object > MESSAGE(root{'xml'}) ! Compilation error Lucky you! I just went through this last week! declare root as a CSTRING(31) in whatever scope is correct (global, module, or local) for your implementation. Now, presuming that the VB example they gave something like: SET ObjectName = CREATEOBJECT(Microsoft.XMLDOM) ObjectName.Async = FALSE SET Root = ObjectName.DocumentElement SomeReceivingVariable = Root.Xml make your references as shown in the example below: Root CSTRING(31) CODE ?OLE{PROP:Create} = 'Microsoft.XMLDOM' ?OLE{'async') = FALSE Root = ?OLE{'documentElement'} ! get the sub object MESSAGE(?OLE{Root & '.Xml'})


Today is April 25, 2024, 11:47 am
This article has been viewed 35106 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: