Click here to Skip to main content
16,005,206 members
Home / Discussions / C#
   

C#

 
GeneralRe: System.Web.Mail for error reporting Pin
Rob Tomson22-Jun-05 7:55
Rob Tomson22-Jun-05 7:55 
GeneralHelp me with my ListView Idea! Pin
Kasdoffe21-Jun-05 9:15
Kasdoffe21-Jun-05 9:15 
GeneralArray definition trouble... Pin
rcurrie21-Jun-05 9:05
rcurrie21-Jun-05 9:05 
GeneralRe: Array definition trouble... Pin
rcurrie21-Jun-05 9:09
rcurrie21-Jun-05 9:09 
GeneralRe: Array definition trouble... Pin
Robert Rohde21-Jun-05 11:17
Robert Rohde21-Jun-05 11:17 
GeneralRe: Array definition trouble... Pin
Anonymous22-Jun-05 13:55
Anonymous22-Jun-05 13:55 
Generalsmall problem Pin
snouto21-Jun-05 8:32
snouto21-Jun-05 8:32 
GeneralRe: small problem Pin
S. Senthil Kumar21-Jun-05 8:39
S. Senthil Kumar21-Jun-05 8:39 
AFAIK, there is no predefined method for what you want to do. You have to explicitly loop through the characters in the string and split them. Off the top of my head,
string[] Split(string text, string separator)
{
   ArrayList splitStrings = new ArrayList();

   int index = -1;
   int prevIndex = index;
   while ((index = text.IndexOf(separator, prevIndex)) != -1) // while we have separators
   {
      // Split from previous found position to current position
      splitStrings.Add(text.Substring(prevIndex, index-prevIndex));
      prevIndex = index + separator.Length;
   }
   return (string[]) splitStrings.ToArray(typeof(string));
}


Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: small problem Pin
leppie21-Jun-05 10:21
leppie21-Jun-05 10:21 
GeneralRe: small problem Pin
IamJunk21-Jun-05 19:30
IamJunk21-Jun-05 19:30 
Generalflow chart generator Pin
bobballi@usa.net21-Jun-05 8:23
bobballi@usa.net21-Jun-05 8:23 
QuestionSocket.Select() Bug? Pin
obelisk2921-Jun-05 7:46
obelisk2921-Jun-05 7:46 
AnswerRe: Socket.Select() Bug? Pin
leppie21-Jun-05 10:45
leppie21-Jun-05 10:45 
GeneralWritting to a ListBox from another class Pin
cmacgowan21-Jun-05 7:45
cmacgowan21-Jun-05 7:45 
GeneralRe: Writting to a ListBox from another class Pin
S. Senthil Kumar21-Jun-05 8:34
S. Senthil Kumar21-Jun-05 8:34 
GeneralRe: Writting to a ListBox from another class Pin
IamJunk21-Jun-05 17:36
IamJunk21-Jun-05 17:36 
GeneralRe: Writting to a ListBox from another class Pin
cmacgowan22-Jun-05 7:17
cmacgowan22-Jun-05 7:17 
Generaltelnetting to a router Pin
reveal21-Jun-05 7:06
reveal21-Jun-05 7:06 
GeneralRe: telnetting to a router Pin
reveal21-Jun-05 7:07
reveal21-Jun-05 7:07 
GeneralRemoting thru firewalls Pin
Judah Gabriel Himango21-Jun-05 6:21
sponsorJudah Gabriel Himango21-Jun-05 6:21 
GeneralRe: Remoting thru firewalls Pin
DeepToot21-Jun-05 14:55
DeepToot21-Jun-05 14:55 
GeneralPassing special characters in a string Pin
CheckDude21-Jun-05 5:49
CheckDude21-Jun-05 5:49 
GeneralRe: Passing special characters in a string Pin
IamJunk21-Jun-05 6:02
IamJunk21-Jun-05 6:02 
GeneralRe: Passing special characters in a string Pin
mav.northwind21-Jun-05 6:58
mav.northwind21-Jun-05 6:58 
GeneralRe: Passing special characters in a string Pin
CheckDude21-Jun-05 16:08
CheckDude21-Jun-05 16:08 

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.