string process

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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
 
Back
Top