GuiCreate ("Setting Page",356,332)
Do
$i=0
GuiSetControl ("label", "Please enter two numbers to random from", 10,10)
$x =GUIRead (GuiSetControl ("input", "", 10,30,40,20))
GuiSetControl ("label", "to", 65,32)
$y = GUIRead (GuiSetControl ("input", "", 100,30,40,20))
GuiSetControl ("label", "How many sites would you like to use?", 10,60,200,20)
$sites_num = GUIRead (GuiSetControl ("input", "", 10,75,40,20))
GuiSetControl ("label", "Please list the sites that you want to use", 10,100,200,20)
$sites_adresses = GuiSetControl ("edit", "", 10,120,330,170)
GUISetControl ("button", "OK", 160,300, 60,20 )
GuiShow ()
GUIWaitClose ()
$check=StringIsDigit ($x)
if $check==0 Then
MsgBox ( 0, "Error","First Number - Please enter a whole number" )
$i=$i+1
EndIf
$check=StringIsDigit ($y)
if $check==0 Then
MsgBox ( 0, "Error","Second Number - Please enter a whole number" )
$i=$i+1
EndIf
Until $i==0
GUIDelete ( )
the GUI works and it show him but when i put letters on one of 2 first boxes it doesn't give me an error message





