w0uter Posted August 27, 2005 Share Posted August 27, 2005 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 More sharing options...
w0uter Posted August 29, 2005 Author Share Posted August 29, 2005 fell to the 3th page. bump. 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 More sharing options...
Lazycat Posted August 29, 2005 Share Posted August 29, 2005 Result of DllStructCreate is actually array, so I think this is a reason. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
w0uter Posted August 29, 2005 Author Share Posted August 29, 2005 even still. array in an array is possible 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 More sharing options...
Lazycat Posted August 29, 2005 Share Posted August 29, 2005 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 Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
w0uter Posted August 29, 2005 Author Share Posted August 29, 2005 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 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