Creating a 2-dimensional array from a comma-delimi

# Thread: Creating a 2-dimensional array from a comma-delimi

1. Junior Member
Join Date
Dec 1969
Posts
19

## Creating a 2-dimensional array from a comma-delimi

I&#039;m looking for some help in creating a 2-dimensional array from a comma delimited string. I know that it is easy enough to get the data into a one-dimensional array using the split function. My array is going to be size(x,5), so I know I can get x with (uBound(oneDimensionalArrayName)/5). <BR> <BR>So my question is how to get the actual data from that one-dimensional array into a 2-dimensional array. <BR>I have searched the the FAQS but haven&#039;t found exactly what I&#039;m looking for. <BR><BR>Thanks for any help!<BR>

2. Senior Member
Join Date
Dec 1969
Location
Los Angeles, CA
Posts
21,192

## WHY???

why do you wnat a 2 dim array. If you have to get one then get a one dim ahd then loop through it and fill in your 2 dim.<BR><BR><BR>dont really understand why. maybe if you tell us what you are trying to do we can suggest a better way (if there is one)<BR><BR>

3. Heaven's Martini Guest

## RE: Creating a 2-dimensional array from a comma-de

Whats the problem?<BR><BR><BR>so what the string is<BR>str = "akhilesh,smokes,akhilesh,killsboars,akhilesh,idio t"<BR><BR>you then want an array<BR>[akhilesh][smokes]<BR>[akhilesh][killsboars]<BR>[akhilesh][idiot]<BR><BR>like that.<BR><BR>so split the darn thing<BR>then <BR>just copy in<BR><BR>your counter like so <BR>myarray(0,0) = looper(x)<BR>myarray(0,1) = looper(x+1)<BR><BR>you get the idea...<BR><BR>careful on the columns (i always get those mixed around<BR><BR>

4. Senior Member
Join Date
Dec 1969
Location
Los Angeles, CA
Posts
21,192

## I did NOT kill the boar you SHMUCK..

....it ran away...IT almost killed me...i would have just hurt it...maybe broke a rib or 2

5. Heaven's Martini Guest

## well, you spelled it right this time.

Hmm<BR><BR>i was just using examples <BR>there was nothing inferred <BR>hehe.

6. Senior Member
Join Date
Dec 1969
Location
Los Angeles, CA
Posts
21,192

## it was the fingers...speaking for fingers....

A brunette goes to the doctor and as she touches each part of<BR>her body with her finger she says, "Doctor it hurts everywhere.<BR>My leg hurts, my arm hurts, my neck hurts, and even my head<BR>hurts!" The doctor asks, "Were you ever a Blonde?" "Yes, I was."<BR>she replies. "Why do you ask?" The doctor answers, "because your<BR>finger is broken!

7. RB
Member
Join Date
Dec 1969
Posts
30

## RE: it was the fingers...speaking for fingers....

And I thought this message board is for ASP queries ! :)

8. Heaven's Martini Guest

## as they say in CA, "dude"

Where are you getting these<BR><BR>super old jokes at.<BR><BR>try www.newjoke.com<BR><BR>or something.

9. Senior Member
Join Date
Dec 1969
Location
Los Angeles, CA
Posts
21,192

## What ever gave you THAT idea??

who ever told you that....LIED.....glad you got that misconception cleared up :)<BR><BR>guess today is just one of those days

10. Senior Member
Join Date
Dec 1969
Location
Los Angeles, CA
Posts
21,192

## ok DudeET i will

thank you for the new source....but that was nice the way it fit in huh

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•