Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

looking for array assignment syntax

$
0
0

Hi Fellow code-naughts. How is it going.

 

I m trying to do this:

 

Dim $myArray[4]

 

;long arduous codes insert here

 

$myArray = [1, 2, 3, 4] ; <======= and obviously this gives you an error.

 

#cs 

so besides doing the 

$myArray[0] = 1;

$myArray[1] = 2;

.....

 

any faster way of doing this?

 

thanks

#ce

 

ALso

Second question: all local variables, even arrays are destroyed at the end of their scope right? I am not sure about array being a pointer or not in autoit.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>