Implicit Variant conversions done by TVarParentExpr does not work well

Issue #210 resolved
Josef Kučera created an issue

Hello,
I have discovered a corner issue a specific scenario. It used to work fine before commit 273dc91267ce885af2d21b5eb2e32e72db3ef338, because the TConv expressions provided the needed conversion. Now the TVarParentExpr does and it fails, if the parent Variant variable contains, e.g. a boxed JSON value (sample script attached).

I think the issue can be resolved by changing the TVarParentExpr’s implementations of EvalAsInteger and EvalAsFloat to use VariantToInt64 and VariantToFloat respectively.

Best regards,
Joe

Comments (1)

  1. Log in to comment