Author Topic: equivalent of PB Variant data type  (Read 309 times)

0 Members and 1 Guest are viewing this topic.

Offline Chris Chancellor

  • Sr. Member
  • ****
  • Posts: 298
equivalent of PB Variant data type
« 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

Offline Charles Pegge

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
    • Charles Pegge
Re: equivalent of PB Variant data type
« Reply #1 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.

Offline Chris Chancellor

  • Sr. Member
  • ****
  • Posts: 298
Re: equivalent of PB Variant data type
« Reply #2 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