Main Site Documentation

Is there a String compare with length?


#1

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);


#2

This could be achieved by using substrings.


#3

what do you mean mike ?


#4

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


#5

i will give it a try, thank you.

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