Jump to content
Sign in to follow this  

Arrays of Structures

Recommended Posts



I've been searching, but I can't seem to find if autoit supports arrays of structures. Here is an example in C code.

struct stockType {
   char name[5]; /* Max 5 characters */
   int date; /* Current day from 1 to 31 */
   double current; /* Current price of the day */
   double open;  /*Opening price of the day */

type def struct stockType Stock;

Stock company[100];

for (i=0; i<100; i++)
printf("%d", company[i].current);

I haven't tested the C code, but this was to just give an idea.

Share this post

Link to post
Share on other sites

It's not efficient to use array of structures in AutoIt. Use $avArray[100][4] instead.

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.