Skip to content

Variant datatype

Include: Built in; no package required.

Variant is a native DataFlex dynamic container type. It can hold supported scalar values and aggregate values at runtime. Earlier DataFlex implementations exposed Windows COM behavior; this TechStack runtime Variant is not a Windows COM VARIANT.

Size

16 bytes for the runtime Variant value container.

Range

A Variant can contain supported runtime scalar values, strings, arrays, structs, and an empty value state.

Example

Variant vValue
Move "Ada" to vValue
Move 42 to vValue

Notes

The current runtime stores the contained value and preserves its active DataFlex type.