RAD Studio VCL Reference
IVarStreamable Interface

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

IVarStreamable = interface;
__interface IVarStreamable;

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. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!