Jump to content

Array of Struct?


Recommended Posts

You might like to be more clear about the problem your having.

To me It looks like you forgot to read the AutoIt Help file, Section "Array's" at the "Language Reference - Variables" page.

( ... or => http://www.autoitscript.com/autoit3/docs/intro/lang_variables.htm )

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Link to comment
Share on other sites

Yep the "how to" create and fill a array with data in one command is missing from the that page. (hidden in Dim/Global/... page.)

Dim $Array1[12]

$Array1[0] = 3

$Array1[1] = 7.5

... etc.

Or, all in one:

Dim $Array1[12]=[3, 7.5, "string"], $array[5] = [8, 4, 5, 9, 1]

Or in your case.

dim $a[2]=[DllStructCreate("int a; int b"), DllStructCreate("int a; int b")]

Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

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