I was wondering if there is a better or more professional way of finding the size or Max Index of an Array. I have done a quick search of the forums as well as gone though the help file (I found one that gave max index of highest variable but that would be kinda unreliable in this case as the max is not always the last)
Here is some example code to show what i mean.
#include <File.au3> $GerneticArray = _FileListToArray(@DesktopDir) For $ArraySize=0 To $GerneticArray[0] Next ConsoleWrite("Size of Array is " & $ArraySize)
Edited by IanN1990, 11 June 2012 - 07:10 PM.






