Func input()
While 1
GUICreate("Emax", 380, 180, @DesktopWidth / 4 - 160, @DesktopHeight / 4 - 45, -1, 0x00000018)
GUICtrlCreateLabel("Enter the row to start with: ", 10, 5)
$input1 = GUICtrlCreateInput("", 10, 25, 100, 20)
GUICtrlCreateLabel("Enter the last row: ", 10, 50)
$input2 = GUICtrlCreateInput("", 10, 65, 100, 20)
GUICtrlCreateLabel("Enter a time delay (in milliseconds) in case the network is running slow: ", 10, 90, 350, 20)
$input3 = GUICtrlCreateInput("", 10, 105, 100, 20) ;slows whole program down
$enterBtn = GUICtrlCreateButton("Enter", 20, 145, 60, 20)
$cancelBtn = GUICtrlCreateButton("Cancel", 100, 145, 60, 20)
GUISetState()
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then
Exit
ElseIf $msg = $enterBtn Then
$row = Int(GUICtrlRead($input1, 1))
$lastRow = Int(GUICtrlRead($input2, 1))
$delay = Int(GUICtrlRead($input3, 1))
ExitLoop
ElseIf $msg = $cancelBtn Then
Exit
EndIf
WEnd
If ($row>0) And ($lastRow >= $row) Then
ExitLoop
Else
MsgBox(48, "ERROR", "You must enter a valid integer and the last rows gotta be greater than or equal to the first row."
EndIf
WEnd
EndFunc
This is the full function (you make a valid point Mobius)...but no matter what the inputs are I can't get to the error message