Re: getting Nth position in a comma delimited string..
- From: "hazz" <hazz@sonic_net>
- Date: Mon, 8 Aug 2005 21:12:22 -0700
Thank you!
"Shane Story" <nospam@xxxxxxxxxxxx> wrote in message
news:%233%23GeoHnFHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
> hazz,
>
> Why not Split them and use trim on the strings?
>
> Dim s As String = "a, b, c, d"
> MsgBox(s.Split(",")(1).Trim)
>
> HTH,
>
> Shane Story
>
>
>
> "hazz" <hazz@sonic_net> wrote in message
> news:OCaJeaHnFHA.3380@xxxxxxxxxxxxxxxxxxxxxxx
>> yes i should know this but ...
>>
>> V,-1,1,2,-1,333,5
>>
>> I would like to return the value from any position within the comma
>> delimited string
>>
>> position 1 is "v"
>> position 2 is "-1"
>> position 6 is "333"
>>
>> at first I thought I could use string.chars(n) until I realized that
>> 1. There are commas and that the spaces between the commas vary so I have
>> to use an algorithm and function(s) that look for
>> 1. the first item contained before the first comma,
>> 2 the second item contained between the first and second comma,
>> 3 the third item contained between the second and third,
>> etc.
>>
>> thank you,
>> -hazz
>>
>
>
.
- References:
- getting Nth position in a comma delimited string..
- From: hazz
- Re: getting Nth position in a comma delimited string..
- From: Shane Story
- getting Nth position in a comma delimited string..
- Prev by Date: RE: Combobox / Display Member / SQL Question
- Next by Date: Re: getting Nth position in a comma delimited string..
- Previous by thread: Re: getting Nth position in a comma delimited string..
- Next by thread: RE: getting Nth position in a comma delimited string..
- Index(es):
Relevant Pages
|