Jose's Read Only Forum 2023

IT-Consultant: Charles Pegge => OxygenBasic => Topic started by: Chris Chancellor on May 13, 2018, 11:05:37 PM

Title: equivalent of PB Variant data type
Post by: Chris Chancellor on May 13, 2018, 11:05:37 PM
Hello Charles,
In PB there is a Variant Data type which is very flexible,  does O2 has an equivalent data type

i found nothing related to this data type in the Oxygen_help.htm

see http://manmrk.net/tutorials/basic/PowerBASIC/pbcc/variant_data_types.htm (http://manmrk.net/tutorials/basic/PowerBASIC/pbcc/variant_data_types.htm)
Title: Re: equivalent of PB Variant data type
Post by: Charles Pegge on May 14, 2018, 06:46:26 AM
Hi Chris,

Variants are part of Microsofts OLE COM/automation system. They ar really intended for scripting languages, which cannot handle native variable types directly. O2 does not have variants as a core type, but is quite good at automatically converting variables where necessary, including string<->number conversions.
Title: Re: equivalent of PB Variant data type
Post by: Chris Chancellor on May 15, 2018, 10:42:31 AM
That's good to know, thanxx

that's why O2 is so flexible, the auto conversions are genius features