Sign in to follow this  
Followers 0
taylansan

tiny problem with arrays

4 posts in this topic

here is a simple example

Dim $z
;or Dim $z[3][3]

For $x = 1 To 3
    For $y = 1 To 3
        Dim $z[$x][$y] = $x*$y ;problem is here?
    Next
Next

now i need output z as;

1 2 3

2 4 6

3 6 9

but its not. need some help. thnx


TY.

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Dim $z[4][4]
For $x = 1 To 3
    For $y = 1 To 3
        $z[$x][$y] = $x * $y 
    Next
Next

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

thank you :)


TY.

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