Is there a String compare with length?

I have been looking at the String class, and i dont seem to see anything that is equivalent to this C statement.

strncmp(stringa,stringb,int);

This could be achieved by using substrings.

what do you mean mike ?

String.Compare(a.SubString(0, length), b.SubString(0, length))

i will give it a try, thank you.

That worked, i would have never though to do that, thanks again