Jump to content

structure or type


ptt
 Share

Recommended Posts

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

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 by Valuater

NEWHeader1.png

Link to comment
Share on other sites

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

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