Like you can convert booleans to string with str(varName), how can I do it the other way round so that I am converting a string or number to a boolean? Should I use Operator_Convert or something like that or is there a better way of going about doing this? Thanks
One way would be to use a Variant:
dim v as Variant = "true" dim b as Boolean = v.BooleanValue
I think the strings are limited to “true” = true, anything else = false. For anything else, use your own class with Operator_Convert.
for numbers I use
b = (i = 1)
b = (s = “True”)
Thanks, sounds good.