|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
string processhello, 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 Show quoteHide quote "dotnetnoob" <dotnetn***@discussions.microsoft.com> wrote in message news:9F4CCB69-ADD0-48A4-B65B-AB6C69154D69@microsoft.com... > 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?
Writing text to file
try Catch for empty textfield VB .Net (VisualStudio 2005) and the SQL Server SMO Object question Crystal Reports for .NET 2005 secuity issue with terminal services connection? Passing System.Enum as a parameter type... Help! VB Express & Excel automation ? Getting Data out of MS Project moving controls with in an image VB .net, Access Error - specific cast not valid How can I prevent the user to end my program |
|||||||||||||||||||||||