Convert to Variant

Hi: I want to convert any data type to variant. Because I need to work all my variables in this data type. Please, if anybody can help me I appreciate… Thanks in advence, RaulB

Why do you need to work with Variants? Fact is, you can’t do much at all with the Variant data type in C/AL. It’s main purpose is interfacing with external components. But you can, anyway, assign any data type to a Variant: Variant := Integer; Variant := Text; Variant := Record; Variant := Automation And so on…