如题
解决方案 »
- 全局变量的问题
- [咨询]关于Indy7 的idTcpServer 真的无法识别自己的标识包吗?
- 一个关于TFileStream写文件的问题
- 程序员薪水
- 一个很基础的问题!
- DataBase指定AliasName时,这个AliasName必须在BDE定义吗?
- 请问怎样用delphi执行外部的exe文件?
- ReportBulider问题
- DBGRID的问题(急)
- 怎样用 ActionList
- Database(BDE)+Table+DataSetProvider+ClientDataSet+DataSource+DBGrid遇到的问题
- 有没有哪位大哥做过包袋行业的管理系统?有的话,另开贴高分求助!!
a:float;
begin
try
a:=StrToFloat(StringGrid[1,1]);
except
showmessage('不是Float型');
end;
showmessage('是Float型');
end;
b : Variant ;
begin
case VarType(b) of
varCurrency : ShowMessage('Float');
varEmpty : ShowMessage('Empty');
end;
for i:=1 to stringgrid.rowcount do
for j:=1 to stringgrid.colcont do
begin
try
strtofloat(stringgrid.cell[i-1,j-1]);
except
showmessage(inttostr(i-1)+'行'+inttostr(j-1)+'列不是浮点数');
end
end;