Click here to Skip to main content
15,890,557 members
Home / Discussions / C#
   

C#

 
QuestionDefault value for a combo box Pin
Keshav V. Kamat5-Mar-07 23:26
Keshav V. Kamat5-Mar-07 23:26 
AnswerRe: Default value for a combo box Pin
Frank Kerrigan6-Mar-07 2:31
Frank Kerrigan6-Mar-07 2:31 
GeneralRe: Default value for a combo box Pin
Keshav V. Kamat6-Mar-07 17:05
Keshav V. Kamat6-Mar-07 17:05 
QuestionButton Color C# in WindowsCE Pin
trab0075-Mar-07 22:57
trab0075-Mar-07 22:57 
AnswerRe: Button Color C# in WindowsCE Pin
sam#5-Mar-07 23:15
sam#5-Mar-07 23:15 
GeneralRe: Button Color C# in WindowsCE Pin
trab0075-Mar-07 23:36
trab0075-Mar-07 23:36 
QuestionManipulating a string Pin
Ryno Burger5-Mar-07 22:35
Ryno Burger5-Mar-07 22:35 
AnswerRe: Manipulating a string [modified] Pin
Harini N K5-Mar-07 23:00
Harini N K5-Mar-07 23:00 
Hi

I have added comments for each line. Hope it helps you.

string StrObjectItems = "";
StrObjectItems = "Object1,Item1,Item2-Object2,Item1,Item2-Object3,Item1,Item2";

//You need two string arrays - one for each pipeline and another is that each comma within pipeline strings

string[] StrObjectsArray = StrObjectItems.Split(new char[] { '-' });

//loop thro' each objects as you have splitted into array of strings. 
for (int i = 0; i <= StrObjectsArray.GetUpperBound(0); i++)
{
//this string will have first object that is 'Object1,Item1,Item2'
string StrObjects = StrObjectsArray[i].ToString();
	
//again split the above string as an array	
string[] StrItemsArray = StrObjects.Split(new char[] { ',' });
	
//loop thro' each objects' items as you have splitted into array of strings. 
for (int j = 0; j <= StrItemsArray.GetUpperBound(0); j++)
{
	string StrItems = StrItemsArray[j].ToString();
}
}



-- modified at 5:23 Tuesday 6th March, 2007

Rate this message. Thank you. Harini Smile | :)

AnswerRe: Manipulating a string Pin
Guffa6-Mar-07 0:43
Guffa6-Mar-07 0:43 
AnswerRe: Manipulating a string Pin
Ryno Burger6-Mar-07 2:13
Ryno Burger6-Mar-07 2:13 
AnswerRe: Manipulating a string Pin
Keshav V. Kamat6-Mar-07 16:55
Keshav V. Kamat6-Mar-07 16:55 
AnswerRe: Manipulating a string Pin
Keshav V. Kamat6-Mar-07 17:00
Keshav V. Kamat6-Mar-07 17:00 
QuestionWord 2007 Ribbon Pin
nibelungster5-Mar-07 22:22
nibelungster5-Mar-07 22:22 
QuestionCan I Connect to an access DB remotely Pin
BraveShogun5-Mar-07 22:15
BraveShogun5-Mar-07 22:15 
AnswerRe: Can I Connect to an access DB remotely Pin
Eduard Keilholz6-Mar-07 2:06
Eduard Keilholz6-Mar-07 2:06 
QuestionRe: Can I Connect to an access DB remotely Pin
michael_jhons6-Mar-07 3:20
michael_jhons6-Mar-07 3:20 
Questionhow to code for windows login using C# Pin
Member 38880245-Mar-07 21:46
Member 38880245-Mar-07 21:46 
QuestionRe: how to code for windows login using C# Pin
Eduard Keilholz6-Mar-07 2:06
Eduard Keilholz6-Mar-07 2:06 
AnswerRe: how to code for windows login using C# Pin
Dave Kreskowiak6-Mar-07 3:00
mveDave Kreskowiak6-Mar-07 3:00 
Questionsetup for windows Pin
Muhammad Ashraf Nadeem5-Mar-07 21:40
Muhammad Ashraf Nadeem5-Mar-07 21:40 
Questionpanel transparency Pin
mihksoft5-Mar-07 21:38
mihksoft5-Mar-07 21:38 
AnswerRe: panel transparency Pin
sam#5-Mar-07 22:08
sam#5-Mar-07 22:08 
GeneralRe: panel transparency Pin
mihksoft5-Mar-07 22:11
mihksoft5-Mar-07 22:11 
GeneralRe: panel transparency Pin
sam#5-Mar-07 22:25
sam#5-Mar-07 22:25 
GeneralRe: panel transparency Pin
mihksoft5-Mar-07 22:35
mihksoft5-Mar-07 22:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.