|
本帖最后由 papapa314 于 2011-4-10 01:53 编辑
$Form1 = GUICreate("配置信息", 395, 99, 274, 222)
$Input1 = GUICtrlCreateInput("8", 144, 24, 89, 21)
$Button1 = GUICtrlCreateButton("开始", 120, 56, 137, 33)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
Case $Button1
$string="大家好20大家好"
$value=StringRegExp($string,"大家好(\d+)大家好",3)
MsgBox(0,0,$value[0])
MsgBox(0,0,GUICtrlRead($Input1))
MsgBox(0,0,$value[0]<=GUICtrlRead($Input1))
EndSwitch
WEnd
按理说, $value[0]=20,GUICtrlRead($Input1)=8
$value[0]<=GUICtrlRead($Input1) 应该为false才对,但程序输出的却是True!匪夷所思。希望各位指点下。 |
|