Jump to content

Need help with arrays


Recommended Posts

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ôÔÈ)}ÉÉå¥ÍÁ±ä ÀÌØíÉÉä¤
Link to comment
Share on other sites

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