Tom Lavedas
2003-08-07 15:55:14 UTC
Dim bVariable ' as boolean
All variables are of type Variant in scripting, so you
can't actually create a boolean (notice informational
comment at end of DIM statement). It can only be
subtyped - and then only by typecasting using an
equivalence statement, as in ...
bVariable = False ' now its a variant, subtype boolean
If you're having troubles with a type mismatch from a roll-
your-own control, it can only be fixed by revising your
control to return only variants.
Tom Lavedas
===========
All variables are of type Variant in scripting, so you
can't actually create a boolean (notice informational
comment at end of DIM statement). It can only be
subtyped - and then only by typecasting using an
equivalence statement, as in ...
bVariable = False ' now its a variant, subtype boolean
If you're having troubles with a type mismatch from a roll-
your-own control, it can only be fixed by revising your
control to return only variants.
Tom Lavedas
===========
-----Original Message-----
How do I dimension a Boolean variable in a VB Script?
How do I dimension a Boolean variable in a VB Script?