Hi
The following produces some very strange results
When reading from the ini file if the values are Start = 1 to end = 99 everything works as expected
When reading from the ini file if the values are start = 100 to end = 255 everything works as exected
When reading from the ini file if the values are Start = 1 to end = 100 if fails instantly. (only completes one loop)
When NOT reading from the end value from the ini file and setting the end value to 100 in the code it works as expected
HELP please .............
INIFile
[GENERAL]
NetRange=192.168.0.
Start=90
End=100
CODE
Global $IniFile = @ScriptDir & 'Scan.ini'
Global $Start = IniRead($IniFile,'GENERAL','Start','')
Global $End = IniRead($IniFile,'GENERAL','End','')
Scan()
Msgbox(0,'','Finished',10)
Func Scan()
$i= $start
while $i <= $end
Msgbox(0,'','Pass - ' & $i,3)
$i = $i + 1
WEnd
Msgbox(0,'','Fail',20)
EndFunc