textVariant = stringVariant throws IDE exception when running

dim t as text = "test" dim s as string = "test" dim v1 as Variant = t dim v2 as Variant = s if v1 = v2 then break else break end

I’m thinking this is related to why classic dictionary lookups with the new Text datatype also doesn’t work.


If anyone wants to know how to get around this bug do this:

if v.Type = variant.TypeText then v = v.StringValue if v2.Type = variant.TypeText then v2= v2.StringValue