On Sun, 11 Apr 2004 14:57:09 -0700, "Aaron" <> wrote:
>DOes anyone know how to check the length of words in a string?
>
>I want all the word in a string to be less than 100 char to prevent buffer
>overflow.
>
>
>Thanks.
>Aaron
I'm just begining to learn C#, so most likely this isn't what you're
looking for but, I thought I would mention my thought
string s;
s="served";
int i;
i=(s.Length);
Console.WriteLine("i is: " + i );
you can use an if/then or a try/catch block if the length is 100 or
more?
-Tony!-