Wb-FreeKill 0 Posted March 31, 2005 $dllFile[$i][0] This will give me an error: "Array variable has incorrect number of subscripts or subscript dimension range exceeded.: " It allready has been DIM'd ? $Options=5 Dim $dllFile[99] For $i = 1 To $Options $dllFile[$i] = DLLCall("< Some dll options >") Next For $i = 1 To $Options If @ERROR Or $dllFile[$i][0] = -1 Then Exit $dllFile[$i] = $dllFile[$i][0] Next Share this post Link to post Share on other sites
Ejoc 1 Posted March 31, 2005 Dim $dllFile[99] $dllFile[$i][0] One has 1 Subscript, the other has 2 Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Share this post Link to post Share on other sites
Ejoc 1 Posted March 31, 2005 (edited) I think I see what you are trying to do, you could try: $Options=5 Dim $dllFile[$Options] For $i = 1 To $Options $result = DLLCall("< Some dll options >") $dllFile[$i] = $result[0] Next Edited March 31, 2005 by Ejoc Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Share this post Link to post Share on other sites
Wb-FreeKill 0 Posted March 31, 2005 I think I see what you are trying to do, you could try:$Options=5 Dim $dllFile[$Options] For $i = 1 To $Options $result = DLLCall("< Some dll options >") $dllFile[$i] = $result[0] Next<{POST_SNAPBACK}>Another way to do it, at even better, ty Share this post Link to post Share on other sites