找回密码
 加入
搜索
查看: 1128|回复: 2

怎么判断某一个输入框里有内容输入?

[复制链接]
发表于 2009-5-8 10:36:39 | 显示全部楼层 |阅读模式
两个input输入框 怎么判断某一个输入框里有内容输入?
能否做个判读,当有内容输入的时候去执行操作,没有的时候 不执行!
由于水平比较差,希望大侠们能提供例子给参考参考 谢谢!
发表于 2009-5-8 14:42:31 | 显示全部楼层
本帖最后由 netegg 于 2009-5-8 14:44 编辑

if guictrlread($input1) <> "" or  guictrlread($input2) <> "" then
do
else
exit
endif
发表于 2009-5-8 14:47:44 | 显示全部楼层
Seleft
  case guictrlread($input1) <> "" and  guictrlread($input2) =""
     do1.....
  case guictrlread($input2) <> "" and  guictrlread($input1) =""
     do2.....
   case guictrlread($input2) <> "" and  guictrlread($input1) <>""
     do3....
   case else
     exit
endselect
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-23 03:30 , Processed in 0.079428 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表