Click here to Skip to main content
15,922,427 members
Home / Discussions / C#
   

C#

 
GeneralRe: Delimiters - Is there a simple way Pin
Paul Conrad14-Jun-07 10:52
professionalPaul Conrad14-Jun-07 10:52 
GeneralRe: Delimiters - Is there a simple way Pin
Paul Conrad14-Jun-07 10:44
professionalPaul Conrad14-Jun-07 10:44 
GeneralRe: Delimiters - Is there a simple way Pin
haz1314-Jun-07 10:51
haz1314-Jun-07 10:51 
AnswerThe Simply Way. ;-) Pin
jblouir14-Jun-07 12:58
jblouir14-Jun-07 12:58 
GeneralRe: The Simply Way. ;-) Pin
Christian Graus14-Jun-07 13:01
protectorChristian Graus14-Jun-07 13:01 
GeneralRe: The Simply Way. ;-) Pin
jblouir14-Jun-07 13:12
jblouir14-Jun-07 13:12 
Generalbtw Haz13 Pin
jblouir14-Jun-07 13:18
jblouir14-Jun-07 13:18 
AnswerRe: Delimiters - Is there a simple way Pin
Life as a Coder14-Jun-07 19:27
Life as a Coder14-Jun-07 19:27 
<blockquote class="FQ"><div class="FQA">haz13 wrote:</div>I have tried both char and string separators but can't think of a way grab the data cleanly without including a " or , . I either end up with "apple" "orange" "pear" or "apple orange pear"</blockquote>

I used similar code to split it. Heres some code, maybe it can help u.

Input text same as u : "apple","orange","pear" etc
assume the string named "str"
<pre>
string[] strArray = str.split(',');
for (int i=0;i<strArray.length;i++){
strArray[i] = strArray[i].trimStart('"');
strArray[i] = strArray[i].trimEnd('"');
}
</pre>

Training makes perfect....
QuestionA plugin for ms office Pin
Mori Nei14-Jun-07 10:14
Mori Nei14-Jun-07 10:14 
AnswerRe: A plugin for ms office Pin
ekynox14-Jun-07 12:25
ekynox14-Jun-07 12:25 
QuestionWhere to use Dataset and when to use DataTable? Pin
Khoramdin14-Jun-07 8:14
Khoramdin14-Jun-07 8:14 
AnswerRe: Where to use Dataset and when to use DataTable? Pin
Dave Kreskowiak14-Jun-07 8:29
mveDave Kreskowiak14-Jun-07 8:29 
GeneralRe: Where to use Dataset and when to use DataTable? Pin
Khoramdin14-Jun-07 14:32
Khoramdin14-Jun-07 14:32 
QuestionGet rid of delegate declarations Pin
Genbox14-Jun-07 7:22
Genbox14-Jun-07 7:22 
AnswerRe: Get rid of delegate declarations Pin
Ed.Poore14-Jun-07 9:07
Ed.Poore14-Jun-07 9:07 
GeneralRe: Get rid of delegate declarations Pin
Genbox14-Jun-07 10:10
Genbox14-Jun-07 10:10 
AnswerRe: Get rid of delegate declarations Pin
Jimmanuel15-Jun-07 5:53
Jimmanuel15-Jun-07 5:53 
GeneralRe: Get rid of delegate declarations Pin
Genbox15-Jun-07 9:15
Genbox15-Jun-07 9:15 
QuestionHow to make a Textbox only take numbers? Pin
dipuks14-Jun-07 6:43
dipuks14-Jun-07 6:43 
AnswerRe: How to make a Textbox only take numbers? Pin
Sathesh Sakthivel14-Jun-07 6:52
Sathesh Sakthivel14-Jun-07 6:52 
AnswerRe: How to make a Textbox only take numbers? Pin
Dave Kreskowiak14-Jun-07 7:06
mveDave Kreskowiak14-Jun-07 7:06 
AnswerRe: How to make a Textbox only take numbers? Pin
Hesham Yassin20-Jun-07 0:29
Hesham Yassin20-Jun-07 0:29 
QuestionDataGridView - Randomly re-arranging columns Pin
Tristan Rhodes14-Jun-07 5:43
Tristan Rhodes14-Jun-07 5:43 
AnswerRe: DataGridView - Randomly re-arranging columns Pin
Pualee14-Jun-07 6:21
Pualee14-Jun-07 6:21 
QuestionListing Active Directory Users ? [modified] Pin
ASysSolvers14-Jun-07 4:51
ASysSolvers14-Jun-07 4:51 

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.