[lazarus] "Variant" variable ?

Marc Weustink weus at quicknet.nl
Wed Apr 26 19:00:54 EDT 2000


At 23:20 26-04-2000 +0200, Michael Van Canneyt wrote:

>It is in the Case statement.
>
>Case A : Integer of
>   1 : (X : String;);
>   2 : (Y : Longint);
>end;
>
>If A=1 then you can access X as a string
>If A=2 then you can access Y as a Longint.

Is there a check on this? I allways thought that 1 and 2 are just 
placeholders?

Marc









More information about the Lazarus mailing list