ptt Posted November 23, 2006 Share Posted November 23, 2006 Does autoit has type structure lke vb6 ? to group differerent types of varialbe together? such as like this Public Type devices sName() As String sName2() As String sName3() As String End Type dim reg() as devices reg(1).sName = split( "one, two, three", ", ") where reg(1) is a device such as fan ....up to reg(20) is there anyway to to group them in autoit ? b/c i hve like near 20 register path to store and i hve to write the some code to add keys in. tx in advanced, Link to comment Share on other sites More sharing options...
Valuater Posted November 23, 2006 Share Posted November 23, 2006 (edited) maybe.. $name = StringSplit("one,two,three", ",") For $x = 1 To $name[0] MsgBox(64, "name #" & $x, $name[$x], 2) Next oÝ÷ ÛÀ%²%¡¶¥8§«¢+Ø()±½°ÀÌØí¹µôMÑÉ¥¹MÁ±¥Ð ÅÕ½Ðí½¹±Ñݼ±Ñ¡ÉÅÕ½Ðì°ÅÕ½Ðì°ÅÕ½Ðì¤()¥ÍÁ±å9µÌ ¤()Õ¹¥ÍÁ±å9µÌ ¤(½ÈÀÌØíàôÄQ¼ÀÌØí¹µlÁt(5Í ½à ØаÅÕ½Ðí¹µÅÕ½ÐìµÀìÀÌØíà°ÀÌØí¹µlÀÌØíát°È¤(9áÐ)¹Õ¹(( 8) Edited November 23, 2006 by Valuater Link to comment Share on other sites More sharing options...
ptt Posted November 23, 2006 Author Share Posted November 23, 2006 no ...what i mean is i wnt an array of where each element of that array is another array. ...reason is so i can make a loop for treelist like array of devices , where each devices has its own array. .....i can do this in vb6 using struct ....but wonder if autoit has struct or any similar way? Link to comment Share on other sites More sharing options...
Valuater Posted November 23, 2006 Share Posted November 23, 2006 ??? Global $Array[3][4] Global $name = StringSplit("one,two,three", ",") $Array[1][3] = $name DisplayNames($Array[1][3]) Func DisplayNames($var) Local $x For $x = 1 To UBound($var) - 1 MsgBox(64, "name #" & $x, $var[$x], 2) Next EndFunc ;==>DisplayNames closer?? 8) 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