• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

equivalent of PB Variant data type

Started by Chris Chancellor, May 13, 2018, 11:05:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chris Chancellor

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

Charles Pegge

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.

Chris Chancellor

That's good to know, thanxx

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