[fpc-pascal] Why this code fails
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Jan 16 19:32:07 CET 2007
On 16 jan 2007, at 15:55, Matt Emson wrote:
>> The reason is that it tries to convert S to a number rather than V to
>> a string. The error is still in the current 2.1.1.
>
> Does FPC have :
>
> function VarToStr(const V: Variant): string;
>
> As this is what I would tend to advocate for this kind os
> assignment anyway.
In fact, Kylix has exactly the same behaviour as FPC, so I don't
consider it to be an error after all.
Jonas
More information about the fpc-pascal
mailing list