难道delphi要返回一个变量类型只用以下的代码完成吗?(在vb或vfp中可用vartype函
数直接得出变量的类型)
begin
case VarType(aParam) of
varInteger:result:='整型';
varString:result:='字符串';
varDate:result:='日期';
varBoolean:result:='布尔型';
//等等,请参阅 VarType 函数的用法!
end;
end;
数直接得出变量的类型)
begin
case VarType(aParam) of
varInteger:result:='整型';
varString:result:='字符串';
varDate:result:='日期';
varBoolean:result:='布尔型';
//等等,请参阅 VarType 函数的用法!
end;
end;
麻烦吗?