variants



variants
Smart pascal source code
function VariantDemo(v: Variant): Variant; begin case v of 1: Result := True; 2: Result := 3.14159265358; end; end; var v: Variant; v := VariantDemo(1); WriteLn(v); WriteLn(VariantDemo(2)); {<<< RESULT - CONSOLE LOG >>> ----------------------------- True 3.14159265358 ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}