Jump to content

Arrays


Recommended Posts

  • Developers

Dim $aIn[10] 
Dim $aOut[10][2]

; fill $aIn with something

for $x = 0 to ubound($aIn) -1
    $aOut[$x][0] = $aIn[$x]
Next

EDIT: Added -1 on the For statement

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Thanks guys I am already doing something similar. Guess I should have posted the code. :D I was using the "While . . . Wend" statement set. Is the "For . . . Next" any faster? I was actually hoping there was a way do this on one line of code like a simple assignment : $2darray[1] = $1darray but I guess that would be to easy.

Thanks again.

Edited by a_bubas_sign
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...