Jump to content
Sign in to follow this  

2 For Next Loops

Recommended Posts

hi everyone,

For $j = 1 To $Search[0][0]
    For $i = $LastEOF + 1 To $aRecords[0] Step 1
        $aParts = StringSplit($aRecords[$i], @TAB)
        If IsArray($aParts) And (UBound($aParts) >= 5) And ($aParts[2] = $Search[$j][1]) Then
            If Not _FileReadToArray($Temp, $aTemp) Then
                MsgBox(4096, "Error", "Error reading templog to Array error: " & @error)
            If (_ArraySearch($aTemp, $aParts[3] & @TAB & $aParts[4]) = -1) Then
                FileWriteLine($Temp, $aParts[3] & @TAB & $aParts[4])
                ;Run(@ComSpec & " /c " & $Paging, "", @SW_HIDE)
                MsgBox(0, "", $aParts[3] & @TAB & $aParts[4])

i have 2 For loops. it is not working though.

i guess u can't a for loop inside another for loop...

can someone please help me out here?


Share this post

Link to post
Share on other sites

Ofc you can, try it on simpler example and youl see itl work,

For $x = 1 To 10
    For $y = 1 To 10
Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)

There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...