Thomas Mueller - 2026-10-13

Not a bug, the exception is intended: TryVar2Xxx returns False only for a Null or Empty variant, a variant that holds something that cannot be converted raises EVariantConvertError. The comment above the conversion functions has said so since the initial import.

The functions that deviate are TryVar2Int, TryVar2Int64, TryVar2LongWord and TryVar2Bool, which return False in that case. That is [#63].

 

Related

Bug Reports: #63