473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

string process

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?
Aug 29 '06 #1
1 1047
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

"dotnetnoob" <do********@discussions.microsoft.comwrote in message
news:9F**********************************@microsof t.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?

Aug 29 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Earl Eiland | last post by:
The command string consists of "filename.exe instruction1 instruction2 ...." It works in subprocess, but in process, returns the error "can't find the file instruction1". How do I pass command...
1
by: Kashish | last post by:
Is file<<"Some string"<<endl is an atomic operation. where file is an ofstream object. If we output a string in ofstream and we provide endl after that,Can we make sure the whole string will be...
10
by: slurper | last post by:
if i do this char *mystring="mystring"; later i reassign to mystring like this mystring="replacewithnewstring"; i'm not a c expert, but i suppose i need to get rid of the dynamically...
1
by: Ramón | last post by:
I launch an application using this method: Process.Start("C:\\Documents and Settings\\Ramón\\Desktop\\C#___Bluegurads_v3_18_03_05\\Bluetime_1\\BlueTime\\Debug\\BlueTime.exe"); but then I do...
8
by: moondaddy | last post by:
I need to convert a byte array to a string and pass it as a parameter in a URL and then convert it back to the original byte array. However, its getting scrambled in the conversion. In short,...
2
by: XxLicherxX | last post by:
Hello, I tried posting this in a different VB.net newsgroup, but never got a response. Please let me know if there is a better group to post this in. Thanks. For some reason I cannot look at...
2
by: =?Utf-8?B?Q2hhcmxpZQ==?= | last post by:
Hi, I am using System.Diagnostics,Process.Start to execute sqlcmd.exe the second parameter of the Start method is the arguements to pass to sqlcmd Because I am using SQLExpress the string...
3
by: digz | last post by:
This is a very simplified version of something I am trying to understand. The State object holds the strings and maps , and I pass a reference to State to the process Function which manipulates it...
1
by: Alexnb | last post by:
Okay, I have a fix for this problem, but it is messy and I think there might be a better way. Heres an example: Lets say I have a string: "My name is alex" and I have another string "My name...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.