[fpc-pascal] Re: Runtime error 217 on array of Variant
Sven Barth
pascaldragon at googlemail.com
Thu Sep 5 07:14:31 CEST 2013
Am 05.09.2013 06:21 schrieb "Xiangrong Fang" <xrfang at gmail.com>:
>
> I found the problem myself. You have to add "uses Variants" to eliminate
the problem. So now my questions are:
>
> 1) why the Variants unit is required? What does it do?
The Variants unit implements the conversion operators. Normally the unit is
automatically included if you use variants, but in case of parameters and
function results this does not work currently... (already reported)
>
> 2) is there any performance penalty using Variant than TVarRec?
Variants are said to be slower than TVarRec, but they also are more
flexible on the other hand.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130905/5a544326/attachment.html>
More information about the fpc-pascal
mailing list