[fpc-devel] Behavior of Variant > TCaption operator

Michael Van Canneyt michael at freepascal.org
Wed Jun 23 08:47:35 CEST 2010



On Tue, 22 Jun 2010, Luiz Americo Pereira Camara wrote:

> The result is get with a direct typecast Variant > String. In this case if 
> Variant is Null an exception will occur.
>
> Is this the desired behavior or should be changed to a call to VarToStr?

This is the correct (and delphi compatible) behaviour.

Michael.



More information about the fpc-devel mailing list