Home All Groups Group Topic Archive Search About

VB6: What's the command that creates an ARRAY out of a STRING???

Author
14 Oct 2005 6:11 PM
Alan Mailer
Ok, I'm in brain - lock.

What is the VB6 command that could take the following string:

Hello|There|World

.... and create an array in which the elements were "Hello", "There",
and "World"?

I can't think of it for the life of me.  Hopefully someone out there
can fill me in.  You know the command I'm talking about; you're able
to tell it the delimiter in the string, and then it gathers the
non-delimter elements into an array...

Anybody know?

Thanks in advance.

Author
14 Oct 2005 6:10 PM
Duane Bozarth
Alan Mailer wrote:
Show quoteHide quote
>
> Ok, I'm in brain - lock.
>
> What is the VB6 command that could take the following string:
>
> Hello|There|World
>
> ... and create an array in which the elements were "Hello", "There",
> and "World"?
>
> I can't think of it for the life of me.  Hopefully someone out there
> can fill me in.  You know the command I'm talking about; you're able
> to tell it the delimiter in the string, and then it gathers the
> non-delimter elements into an array...
>
> Anybody know?

Yes.

Oh, you mean <you> want to know... :)

Split()
Author
14 Oct 2005 6:38 PM
Alan Mailer
Not that I need another reason to be absolutely amazed by the
internet, but getting from a complete stranger the very answer I
needed to a question I posted not 15 minutes ago ... well, my jaw just
drops!

Thanks Duane so much for reaching out and quickly helping a stranger!

On Fri, 14 Oct 2005 13:10:22 -0500, Duane Bozarth
<dpboza***@swko.dot.net> wrote:

Show quoteHide quote
>Alan Mailer wrote:
>>
>> Ok, I'm in brain - lock.
>>
>> What is the VB6 command that could take the following string:
>>
>> Hello|There|World
>>
>> ... and create an array in which the elements were "Hello", "There",
>> and "World"?
>>
>> I can't think of it for the life of me.  Hopefully someone out there
>> can fill me in.  You know the command I'm talking about; you're able
>> to tell it the delimiter in the string, and then it gathers the
>> non-delimter elements into an array...
>>
>> Anybody know?
>
>Yes.
>
>Oh, you mean <you> want to know... :)
>
>Split()
Author
14 Oct 2005 9:19 PM
New Guy
On Fri, 14 Oct 2005 18:38:24 GMT, Alan Mailer
<clarityas***@earthlink.net> wrote:

>Not that I need another reason to be absolutely amazed by the
>internet, but getting from a complete stranger the very answer I
>needed to a question I posted not 15 minutes ago ... well, my jaw just
>drops!
>
>Thanks Duane so much for reaching out and quickly helping a stranger!


It's only been about 10 years since I was absolutely amazed that I
could post a question about C++, go to bed, wake up, and find an
answer from Australia.  I was using Prodigy and was absolutely amazed.

That was right at the beginning of online activity for me.  Then I
found usenet and the web.  Then I found FAQs, etc.  The Internet has
been great for someone motivated enough to learn.  Now there is
Google.  Since I'm taking a class at a local college, I can access pay
databases for free.

When I was a kid I would walk (uphill both ways) to the downtown
library to check out books to learn something.  Now, I just log on and
I don't even have to make sure that the kids aren't on the phone.

Isn't technology wonderful?

Greg
Author
14 Oct 2005 9:40 PM
Mike Williams
"New Guy" <New***@yahoo.com> wrote in message
news:0q70l19moj61jie4g7g24i8mdoaae19e2u@4ax.com...

> When I was a kid I would walk (uphill both ways) to the
> downtown library to check out books to learn something.

I know exactly how you feel! We used to live in a shoe box
.. . . and it had an outside toilet!

A shoe box? You had an entire shoe box for just one family? We used to share
a shoe box with three other families, and that shoe box *was* the outside
toilet! You've never had it so good! Every morning our Dad used to make us .
.. . . .
Author
14 Oct 2005 10:44 PM
Mike D Sutton
> I know exactly how you feel! We used to live in a shoe box
> . . . and it had an outside toilet!
>
> A shoe box? You had an entire shoe box for just one family? We used to share
> a shoe box with three other families, and that shoe box *was* the outside
> toilet! You've never had it so good! Every morning our Dad used to make us .
> . . . .

You had a shoe box??  Shear bloody luxury!  There were 'undred and fifty seven of us living in rolled up newspaper in
bottom of septic tank, every morning we'd have to lick it out wit' tongues before going to work down pit for 25 hours a
day, and when we got back our father would beat us to sleep with his belt...  But we were 'appy...

    Mike


- Microsoft Visual Basic MVP -
E-Mail: ED***@mvps.org
WWW: Http://EDais.mvps.org/
Author
14 Oct 2005 9:42 PM
Martin de Jong
>Now, I just log on and
> I don't even have to make sure that the kids aren't on the phone.
How to check now ;)) ???

Show quoteHide quote
> Isn't technology wonderful?
Author
14 Oct 2005 11:07 PM
New Guy
On Fri, 14 Oct 2005 23:42:01 +0200, "Martin de Jong"
<ML@community.nospam> wrote:

>>Now, I just log on and
>> I don't even have to make sure that the kids aren't on the phone.
>How to check now ;)) ???
>
Good point.

hah hah.