Jump to content

Why can't i do this?...


Recommended Posts

$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

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
Link to comment
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 :)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...