例如
a:string
a:='(checkbox4.checked=true)'+' and '+'(strtoint(get_s7)>=3)'
怎样引用变量a,写成如下的样式
if a then --这样写系统提示a必须是bool型的,出错。
来实现
if (checkbox4.checked=true) and (strtoint(get_s7)>=3) then
的效果?
...全文
1814打赏收藏
判断语句if then 中引用变量的问题
例如 a:string a:='(checkbox4.checked=true)'+' and '+'(strtoint(get_s7)>=3)' 怎样引用变量a,写成如下的样式 if a then --这样写系统提示a必须是bool型的,出错。 来实现 if (checkbox4.checked=true) and (strtoint(get_s7)>=3) then 的效果?