Well,
PB introduced VARIANT for a specific purpose that was to be used for COM interfaces. But you can use them in many different ways as long as you know what you are doing. Many languages uses variants but they hide some of the possible problems inside the language engine.
PB has ... AS clause in assign statement so you can type something like:
DIM V1 AS VARIANT
V1 = 12345.678 AS DOUBLE
But as does not let you indicate it during function parameter passing.
One of the advantages of having a language (thinBasic) is the possibility to add the features we like
Ciao
Eros
Bookmarks