Jump to content

Why is this


 Share

Recommended Posts

E:\AutoIt3.1.1\Examples\w0uter\ftp\UDF\ftp.au3 (364) : ==> An array variable can not be used in this manner.:

Local $v_FT[3]= [DllStructCreate('dword;dword'), DllStructCreate('dword;dword'), DllStructCreate('dword;dword')]

Local $v_FT[3] = [^ ERROR

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Link to comment
Share on other sites

Yes, possible, but even now it's not official feature. You can assign array to array element, but not initalize it this way. Probably the same limitation, like in Assign().

So...

Local $v_FT[3]
For $i = 0 To 2
  $v_FT[$i] = DllStructCreate('dword;dword')
Next

:whistle:

Link to comment
Share on other sites

the array is the problem.

i tested it with a UDF that returnd an array.

it gave the same error.

i still wonder why they cant be initialised in 1 line.

cuz it is basicly the same.

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

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...