Search the Community
Showing results for tags 'For Next Loop'.
Need some help understanding why the ConsoleWrite works inside 2nd For loop but not out side. Between Audit Wiki, Help file , Forum searching (lots of code reading), and YouTube ( shout out to TutsTeach), I have not been able to find the reason why. $sIniPath = "installLog.ini" ; - Get section name $iniSctionNames = IniReadSectionNames($sIniPath) ; - Get Keys and Vaules For $a = 1 to UBound($iniSctionNames) - 1 $keys = IniReadSection($sIniPath , $iniSctionNames[$a]) For $b = 1 to UBound($keys) - 1 $oldSysInfo = IniRead($sIniPath , $iniSctionNames, $keys[$b
Hi all For the life of me I can't figure out why this doesn't work. The idea is to exit the for/next loop and then use the value of $Stat outside the function. Obviously my understanding of something is deeply flawed, as this does not work as I think it should. global $Stat,$var=3 _Test_Stat() msgbox(0,"Test","The value of $Stat is " & $Stat) Func _Test_Stat() for $Stat = 0 to 5 if $Stat = $var Then ExitLoop EndIf Next EndFunc