Sign in to follow this  
Followers 0
DaProgrammer

Need help with arrays

4 posts in this topic

i worked with arrays in other programming app's but it was never so complicated !!!

why cant i use "$Array[0][0] = 52" ???

is there like a guide around here that explains how to work with arrays couse im confused !

will appritiate some help AND/OR link.


Share this post


Link to post
Share on other sites



i worked with arrays in other programming app's but it was never so complicated !!!

why cant i use "$Array[0][0] = 52" ???

is there like a guide around here that explains how to work with arrays couse im confused !

will appritiate some help AND/OR link.

Arrays are far from complicated, they just seem overwhelming for a new user.

You are fully capable of using "$Array[0][0] = 52", as long as autoit knows that $array is a 2D array.

To tell this to autoit, what you must do is declare the variable prior to using it, and in the declaration, state the number of elements that will be in each dimension of the array. Variables can be declared as local or global.

Example:

Dim $array[3]oÝ÷ Øz0z÷«Á鮲Ùz§)ݶ­¶¢éí¡ûayé^éí²+3zºjÇæ§x"¶ËZ®Û·7«¢Øb²+"+µ©í¶'£Þq«¬z'ò¢ì׶Z½æ§jºÚË­w¥zg§¶Æ§w*.uç%j·Ö¬¯y¦è½ëa{w¥zg§¶Ë-j»Z·Ijx§*.Â¥v¯{MZÝ­£
+­8b²+7zW¦z{lnëmè§uìhvØ^«-zW¦z{pYZ²±·µë,¶§¶§ºfÞ®ÞéÛ¢f¤{*.jºÚË
+Ȧ¦yÉZ­è­~*쵫­¢+Ø%¹±Õ±ÐíÉÉä¹ÔÌÐìí¹½È}ÉÉå¥ÍÁ±ä ¤)¥´ÀÌØíÉÉålÑulÑtì¥ÙÌå½ÔÉÉÉäÝ¥Ñ ±µ¹ÑÌÀ°Ä°È°¹Ì¥¸½Ñ ¥µ¹Í¥½¹Ì¸(ÀÌØíÉÉålÁulÁtôÔÈ)}ÉÉå¥ÍÁ±ä ÀÌØíÉÉä¤

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hi,

Good refs above;

local $Array[1][1]=[[52]]oÝ÷ Ù«­¢+ØìÉÉäÉÑÍÐȹÔÌ(%¹±Õ±ÐíÉÉä¹ÔÌÐìí¹½È}ÉÉå¥ÍÁ±ä ¤)±½°ÀÌØíÉÉålÅulÅtõmlÔÉutì¥ÙÌå½ÔÉÉÉäÝ¥Ñ ±µ¹ÑÌÀ¥¸½Ñ ¥µ¹Í¥½¹Ì¸(íø±½°ÀÌØí¥}ÉÉå Íô°ÀÌØíÉÉålÀ¬ÀÌØí¥}ÉÉå  ÍulÀ¬ÀÌØí¥}ÉÉå   ÍtõmlÔÉutì¥ÙÌå½ÔÉÉÉäÝ¥Ñ ±µ¹ÑÌ¥¸½Ñ ¥µ¹Í¥½¹Ì¸(íø±½°ÀÌØíÉÉålÅulÑtõmlÔÈ°À°À°Áutì¥ÙÌå½ÔÉÉÉäÝ¥Ñ ±µ¹ÑÌ¥¸½Ñ ¥µ¹Í¥½¹Ì¸(íø±½°ÀÌØíÉÉålÑulÑtõmlÔÈ°À°À°Át±lÔÌ°À°À°Át±lÔаÀ°À°Át±lÔÔ°À°À°Áutì¥ÙÌå½ÔÉÉÉäÝ¥Ñ ±µ¹ÑÌ¥¸½Ñ ¥µ¹Í¥½¹Ì¸(íøÀÌØíÉÉålÁulÁtôÔÈ)}ÉÉå¥ÍÁ±ä ÀÌØíÉÉä¤
Best, Randall Edited by randallc

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  
Followers 0