Sign in to follow this  
Followers 0
Wb-FreeKill

Why can't i do this?...

4 posts in this topic

$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



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

#3 ·  Posted (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 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

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

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  
Followers 0