[Solved] Index and length must refer to a location within the string when I try to add an extra digit? [closed]


BreedPub.Substring(0, 3) is probably throwing the exception because your BreedPub argument is too short. You should add some range checking to make sure the parameter is at least 3 characters long.

1

solved Index and length must refer to a location within the string when I try to add an extra digit? [closed]