RAD Studio |  |

Creating a Class to Enable the Custom Variant Type
See Also
Collapse All

Custom variants work by using a special helper class that indicates how variants of the custom type can perform standard operations. You create this helper class by writing a descendant of TCustomVariantType. This involves overriding the appropriate virtual methods of TCustomVariantType.

The following topics provide details on how to implement and use a TCustomVariantType descendant:

- Enabling casting
- Implementing binary operations
- Implementing comparison operations
- Implementing unary operations
- Copying and clearing custom variants
- Loading and saving custom variant values
- Using the TCustomVariantType descendant

See Also

Defining Custom Variants

Writing Utilities to Work with a Custom Variant Type

Storing a Custom Variant Type's Data

Supporting Properties and Methods in Custom Variants

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