Wb-FreeKill Posted March 31, 2005 Share 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 Link to comment Share on other sites More sharing options...
Ejoc Posted March 31, 2005 Share 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 Link to comment Share on other sites More sharing options...
Ejoc Posted March 31, 2005 Share 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 Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted March 31, 2005 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now