Click here to Skip to main content
16,012,153 members
Home / Discussions / C#
   

C#

 
GeneralRe: Convert to array of string Pin
rah_sin14-Jun-06 0:12
professionalrah_sin14-Jun-06 0:12 
GeneralRe: Convert to array of string Pin
Tamimi - Code14-Jun-06 1:02
Tamimi - Code14-Jun-06 1:02 
AnswerRe: Convert to array of string Pin
Guffa14-Jun-06 1:29
Guffa14-Jun-06 1:29 
GeneralRe: Convert to array of string Pin
Tamimi - Code14-Jun-06 1:46
Tamimi - Code14-Jun-06 1:46 
GeneralRe: Convert to array of string Pin
Guffa14-Jun-06 6:25
Guffa14-Jun-06 6:25 
QuestionDuplicate Email checking with AJAX... Pin
YoungJoe13-Jun-06 23:03
YoungJoe13-Jun-06 23:03 
AnswerRe: Duplicate Email checking with AJAX... Pin
stancrm14-Jun-06 0:34
stancrm14-Jun-06 0:34 
Questionstring split error ? help please ... [modified] Pin
cmpeng3413-Jun-06 22:48
cmpeng3413-Jun-06 22:48 
hi all,
i have a string
s="05/12-17:25:05-#3 05/12-17:24:56-#3 05/12-17:24:44-#0 05/12-17:24:32-#3";
like this Smile | :)

and have some code like this in a for loop :
string[] dateopened = new string[80];
string[] houropened = new string[80];
string[] whoopened = new string[80];
char[] splitter = { '-',' ' };
char[] myChar ={ ' ' };
while(s.Length>0)
dateopened = s.Split(splitter);
Console.WriteLine(Convert.ToString(dateopened[i]));
houropened = s.Split(splitter);
Console.WriteLine(Convert.ToString(houropened[i]));
whoopened = s.Split(splitter);
Console.WriteLine(Convert.ToString(whoopened[i]));
s = s.Remove(0, 17); //after adding these two lines my codes work.
s = s.Trim();
}

when i run my program i get the output like that :


05/12
05/12
05/12
17:25:05
17:25:05
17:25:05
#3
#3
#3
05/12
05/12
05/12
17:24:56
17:24:56
17:24:56
#3
#3
#3 ...

why am i getting each value 3 times ?
where am i doing wrong ?
what should i do to have each value only ones ?
thanks in advance,
bye.



-- modified at 9:35 Wednesday 14th June, 2006
AnswerRe: string split error ? help please ... [modified] Pin
rah_sin13-Jun-06 22:53
professionalrah_sin13-Jun-06 22:53 
AnswerRe: string split error ? help please ... Pin
Roy Heil14-Jun-06 3:18
professionalRoy Heil14-Jun-06 3:18 
Questionhow to draw vector images? Pin
Sasuko13-Jun-06 22:34
Sasuko13-Jun-06 22:34 
Questionplz helppppppppp me about this Pin
Gulfaraz13-Jun-06 21:53
Gulfaraz13-Jun-06 21:53 
AnswerRe: plz helppppppppp me about this Pin
J4amieC13-Jun-06 22:04
J4amieC13-Jun-06 22:04 
AnswerRe: plz helppppppppp me about this Pin
User 665814-Jun-06 2:39
User 665814-Jun-06 2:39 
QuestionPopulating Listview with XML file. [modified] Pin
chandler8313-Jun-06 21:49
chandler8313-Jun-06 21:49 
AnswerRe: Populating Listview with XML file. Pin
rah_sin13-Jun-06 22:31
professionalrah_sin13-Jun-06 22:31 
AnswerRe: Populating Listview with XML file. Pin
Tamimi - Code14-Jun-06 1:12
Tamimi - Code14-Jun-06 1:12 
Questiondisplay a image from db Pin
imsathy13-Jun-06 21:31
imsathy13-Jun-06 21:31 
QuestionInstaller for app, dotnet and msde Pin
JacquesDP13-Jun-06 21:26
JacquesDP13-Jun-06 21:26 
AnswerRe: Installer for app, dotnet and msde Pin
Mr. VB.NET14-Jun-06 5:21
Mr. VB.NET14-Jun-06 5:21 
GeneralRe: Installer for app, dotnet and msde Pin
JacquesDP14-Jun-06 5:36
JacquesDP14-Jun-06 5:36 
QuestionRe: Installer for app, dotnet and msde Pin
JacquesDP14-Jun-06 6:19
JacquesDP14-Jun-06 6:19 
AnswerRe: Installer for app, dotnet and msde Pin
Mr. VB.NET14-Jun-06 7:06
Mr. VB.NET14-Jun-06 7:06 
GeneralRe: Installer for app, dotnet and msde Pin
JacquesDP14-Jun-06 20:13
JacquesDP14-Jun-06 20:13 
Question[Message Deleted] Pin
YogeshRT13-Jun-06 20:14
YogeshRT13-Jun-06 20:14 

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.