The problem is, that two Interface-Variants (varUnknown) are
compared for testing "A=B". Delphi normally cannot handle
this. In Delphi 6 you can replace the default VariantManager
by your own one that handles this case (replace VarCmp).
As solution for DWS: replace the standard TRelOpExpr for
comparison by another one that executes the compare for
objects (IScriptObj).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=382292
The problem is, that two Interface-Variants (varUnknown) are
compared for testing "A=B". Delphi normally cannot handle
this. In Delphi 6 you can replace the default VariantManager
by your own one that handles this case (replace VarCmp).
As solution for DWS: replace the standard TRelOpExpr for
comparison by another one that executes the compare for
objects (IScriptObj).