Jump to content
Sign in to follow this  

Strange problem with For loop

Recommended Posts

I verify that there is information in the array and I want to write it our to another file, but it seems to just skip over the for loop. The msgbox under the for loop never occurs. Any help would be greatly appreciated.

If Not _FileReadToArray($xpcd &"\I386\WINNT.SIF",$arr4) Then

MsgBox(4096,"Error", " Error reading log to Array error:" & @error)




For $u = 1 to _ArrayMaxIndex($arr4) - 1; counter for array





Share this post

Link to post
Share on other sites

Maybe this will answer:

#include <Array.au3>
Dim $myarray[8]=[1,2,3,4,5,12]
$max=_ArrayMaxIndex($myarray);Returns the index where the highest value occurs in the array.

$max1=UBound($myarray);Returns the size of array dimensions.
Edited by Nahuel

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...