Variant type conversion rules Target Source integer real string Boolean integer
converts integer formats
converts to real
converts to string
representation
returns False if 0, True
otherwise
real
rounds to nearest integer converts real formats
converts to string
representation using regional
settings
returns False if 0, True
otherwise
string
converts to integer,
truncating if necessary;
raises exception if string is
not numeric
converts to real using
regional settings; raises
exception if string is not
numeric
converts string/character
formats
returns False if string is
'false' (noncase-
sensitive) or a numeric
string that evaluates to 0,
True if string is 'true' or a
nonzero numeric string;
raises exception
otherwise
character
same as string (above)
same as string (above)
same as string (above)
same as string (above)
Boolean
False = 0, True = 1 (255 if
Byte)
False = 0, True = 1
False = '0', True = '1'
False = False, True =
True