Da 0wner
2009-03-04 22:56:35
function VariantToStr(v : variant) : string;
begin
if (not VarIsEmpty(v)) and (not VarIsNull(v)) then
begin
case VarType(v) of
256 : result := v;
3 : result := IntToStr(v);
5 : result := FloatToStr(v);
11 : result := BoolToStr(v);
end;
end;
end;