例如:
case strname of
filename:;
end;
中strname 的定义为
const strname: WideString;
filename的定义为
const strname: String 类型
在执行时报
[Error] ViewUnit.pas(2099): Ordinal type required
[Error] ViewUnit.pas(2100): Incompatible types: 'Integer' and 'String'
怎么解决?
谢!
case strname of
filename:;
end;
中strname 的定义为
const strname: WideString;
filename的定义为
const strname: String 类型
在执行时报
[Error] ViewUnit.pas(2099): Ordinal type required
[Error] ViewUnit.pas(2100): Incompatible types: 'Integer' and 'String'
怎么解决?
谢!
解决方案 »
- 请问Delphi怎么求60天前的日期啊?不会用日期函数。。。
- 本人第一次制作安装程序,先向前辈们请教!是关于用Wise9.02制作安装程序的几个问题,在次先谢谢了!
- 求Wise的中文教程-在线等待,找到立刻给分
- 象ultraedit那样,运行一外部程序并捕获它的输出结果是怎么实现的啊?
- Delphi中怎样才能使窗口能够接受资源管理器拖放的文件?
- 新公司要深户担保,哪位深圳的朋友帮我忙呀!?
- 用过dbexpress的朋友发表一个意见!
- 怎样直接将图象用SQL语句存数据库而不用post?
- 郁闷的问题!下面的程序问题究竟出在哪儿?(系统提示我只有15分了)
- 为学习,特征求多用户管理源代码,会者不难。第一名100分,第二名50分。预压分50分。具体要求请入内。
- 预览和打印
- 关于写入INI文件的错误,请指教?
你可以使用数组
str:=TStringList.Create;
str.Add('china');
str.Add('chile');
case str.IndexOf(Edit1.Text) of
0:showmessage('first');
1:showmessage('second')
因为工作原因,最近要用delphi,所以有很多问题不懂(以前是用VC的)。
通过大家的帮忙,搞定了。