You can use the code sample I posted above just to test and see it write out the second word to the command line. Alternatively, here is a method you can add to your class or a utility class to just get the second word. This will return the 2nd word, or a zero-length string if there is no 2nd word. Yes I was bored :-) Time to sleep now.private string GetSecondWord(string TextIn) { string secondword = ""; string[] fragments = TextIn.Split(new char[] {' '}); if( fragments.Length > 2 ) { secondword = fragments[1]; } return secondword; }
Happy To Help, Joe Mozelesky imoz technologies, llc :: powered by imoz