procedure..................
var
value:string
begin
value:=cmb_lookup.text;
case value of
'大班':showmessage('a');
'中班': showmessage('b');
end;
end; 为什么上面定义成字符串型是不行的:error:ordinal type repuired而定义成整形就可以了:
procedure..................
var
value:integer;
begin
case value of
0:showmessage('a');
1: showmessage('b');
end;
end; 怎么解决????谢谢,在线等。
var
value:string
begin
value:=cmb_lookup.text;
case value of
'大班':showmessage('a');
'中班': showmessage('b');
end;
end; 为什么上面定义成字符串型是不行的:error:ordinal type repuired而定义成整形就可以了:
procedure..................
var
value:integer;
begin
case value of
0:showmessage('a');
1: showmessage('b');
end;
end; 怎么解决????谢谢,在线等。
解决方案 »
- DLL的函数用到string的问题
- 关于在sql中使用len()函数的出错的疑问
- 调用XML Data binding wizard文章的借口,为什么老是出错?高手帮帮忙。
- 刚毕业,刚到一个公司应聘,有一个技术问题,快点帮帮我啊======〉〉〉
- 急急!!!高手请进,一个调试的问题》》。
- TString
- spcomm组件问题
- help!!!!!我在程序中怎么设置QuickRep和打印机,才能让打印机打印出我自定义的纸张大小的区域!
- 关于局域网中文件拷贝问题
- 请问(上,下,左,右,退格,回车)各键的ASCLL值?
- 急询:如何将两个byte数值合成一个double值??
- Delphi中如何向ORACLE中插入日期型字段值?
begin
case cmb_lookup.ItemIndex of
0:showmessage('a');
1: showmessage('b');
end;
end;