RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IVarStreamable Interface

IVarStreamable is the interface for loading and saving the values of Variants.

Pascal
IVarStreamable = interface;
C++
__interface IVarStreamable;

Classes

Implement IVarStreamable on a custom Variant type class to allow Variants of that type to load or save their values. When a TCustomVaraintType descendant implements the IVarStreamable interface, then when Variants of that custom type are used as the values of published properties, their values are loaded from and saved to form files using the IVarStreamable methods. Without the IVarStreamable interface, the value of the Variant is loaded from and saved to form files as a string. 

IVarStreamable defines two methods, StreamIn, and StreamOut, for reading and writing the Variant's value. 

 

TCustomVariantType 

Loading and Saving Custom Variant Values

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!