var
tempvalue:string;
begin
tempvalue:=flatcombobox4.text;
if tempvalue='且' or tempvalue='或' then
begin
//
end;
end;
[Error] WNQUERY.PAS(201): Operator not applicable to this operand type
IF后面是个BOOLEAN表达式,可如果不这样表示,哪位大侠帮忙用IF语句表示?我的目的是判断当这个值为‘且’或者为‘或’时,要执行下面的语句。
tempvalue:string;
begin
tempvalue:=flatcombobox4.text;
if tempvalue='且' or tempvalue='或' then
begin
//
end;
end;
[Error] WNQUERY.PAS(201): Operator not applicable to this operand type
IF后面是个BOOLEAN表达式,可如果不这样表示,哪位大侠帮忙用IF语句表示?我的目的是判断当这个值为‘且’或者为‘或’时,要执行下面的语句。
解决方案 »
- OCX放置一个panel后,ocx收不到onclick事件
- 酒店系统中,客房概览界面的实现
- 用INDY开发EMAIL发送工具,不用用户名和密码来验证是怎么实现的?
- 求[]号的用法(没分了,累足了再加)
- 软件测试兼散分,敬请参与于意见!
- SkinEngine在哪里下载
- 我的delphi6的补丁包在winXP上装不上!一执行setup到100%,就报安装程序错,怎么办!
- 伴水兄,小新师傅,Kingron大哥请进!
- 事件(Event)编程,好玩.
- 如何设置TDatabase的params属性?(如database name,user name,password等)
- 超级高质量源代码下载!!!!!!
- Database Desktop 里建的表,居然没有string型!
begin
//
end;记住要用括号括起来.给分.
tempvalue:string;
begin
tempvalue:=flatcombobox4.text;
if (tempvalue='且') or (tempvalue='或') then
begin
//
end;
end;
tempvalue:string;
begin
tempvalue:=flatcombobox4.text;
if (tempvalue='且') or (tempvalue='或') then
begin
//
end;
end;