Jump to content
Sign in to follow this  
w0uter

Why is this

Recommended Posts

w0uter

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

Share this post


Link to post
Share on other sites
Lazycat

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:

Share this post


Link to post
Share on other sites
w0uter

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

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  

×