Following code generates error "Could not convert
variant of type (String) into type (Double)". Can be
reproduced in DWS 1.2 also.
var id : string;
var i : variant;
i := 6;
id := 'id="'+i;
Logged In: YES
In this case DWS leaves all the work to Delphi. Delphi
analyzes the two operands of '+'. If one of it is numeric it
tries to convert the other one to a numeric value too. It
is not my way of decision for adding/concatenating
variant-values, but should we do a reimplementation of the
Delphi-default-variant-handling? I don't know ...
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.