Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 20193, Converting variants to XML

by Peter Below Email: Anonymous


Provides a unit to convert variants to XML, including a function you can call from the IDEs Evaluate/Modify dialog to debug variants.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 5.0  to 7.0 567 downloads
Copyright: No significant restrictions


Size: 14,086 bytes
Updated on Sun, 15 Jun 2003 04:24:10 GMT
Originally uploaded on Sun, 15 Jun 2003 04:23:18 GMT
SHA1 Hash: B35ECF50C73ED22772288420BCE50FC1F75DDC34
MD5 Hash: B64882580E63902CBCF9B870BFD79EEA

    Explore the files in this upload

Description
Debugging can be cumbersome when Variants are involved, especially variants that contain arrays, nested to an unknown depth, or data types the IDEs watch window does not display properly.
This unit provides a class and some helper routines for converting a variant to an XML representation. It can deal with all common data types found in variants, handles nested arrays, and even some less common data types encountered in PROPVARIANTs, like VT_BLOB or VT_VECTOR.
To display a variant evaluate the function DebugDisplayVariant, passing the variant as parameter, and the XML representation for it will pop up in an Internet Explorer window.
To build this code you need Berend de Boers xml_generator. The header comment of the PBVariantUtils unit in the archive contains URLs for this.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03