string process

G

Guest

hello, i have a arraylist

/box
/box/boxTest
/vbox/vboxTest
/vbox

is it possible to process each item in the arraylist as string and if first
encounter "/" then get the value for example box and process that item and
move on to the next item in the arraylist and if it encounter box and the
program already process box it will move to the next "/" and extract the
value boxTest and process it and when there is no "/" we move down to the
next item in the arraylist.

did i just wrote my own psudo code?
 
M

Miro

Yes I beleive you just wrote your own psuedo code.

If you have a string you can handle each letter in the string as an array
element looking for the "/" and the
next instance of it and then rip out that string and do what you want with
it.

If I assume correctly you want to have it rip out
"Box" for the first line
and "Box" and "BoxTest" for the second.

Here is a pretty good link of string manipulation.

http://www.vbdotnetheaven.com/Code/Apr2003/008.asp

Miro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top