Sign in to follow this  
Followers 0
apsync

array

7 posts in this topic

i want to make an array with words, is this valid ->

part1[] = { "first", "second", "third" }

thx

Share this post


Link to post
Share on other sites



This is an OK way to do that:

$part1=StringSplit("first,second,third",",")

Share this post


Link to post
Share on other sites

thank you very much

Share this post


Link to post
Share on other sites

i want to make an array with words, is this valid ->

part1[] = { "first", "second", "third" }

thx

<{POST_SNAPBACK}>

I am going to be working on it this weekend for this format. I want to get the following to work.

Dim $Part1[] = { "first", "2nd", "third", 4 }

Check out the beta after the weekend.


David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Share this post


Link to post
Share on other sites

I am going to be working on it this weekend for this format. I want to get the following to work.

CODEDim $Part1[]= { "first", "2nd", "third", 4 }

Check out the beta after the weekend.

Oooh, i"m excited. Any chance of dynamic/empty arrays?

AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass.

Share this post


Link to post
Share on other sites

Submitted to JP, but may need some bug fixing before release. What is intended:

Dim $array[8] = [3, 1, 4, 1, 5, 9]  ; Populates the first 6 elements of an 8-element array
Dim $twoD[3][4] = [[3, 1, 5], ["Word 1", "Word 2", "Word 3", "Word 4"]]

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

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