` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

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 May 4, 2024, 9:20 pm
This article has been viewed 35111 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: