Hi, I'd really appreciate some feedback on the attached code.
The code is intended to take an alphanumeric string and increment the numerical part by a specified amount e.g. the string CV01-00123 would be incremented to CV01-00124 (it's going to be used in a data input form for entering sequential sample IDs).
I'd really appreciate some wiser heads looking it over and giving any feedback as to whether there are any pitfalls with what I've done or if there would be better way to do it. Thanks in advance.
The code is intended to take an alphanumeric string and increment the numerical part by a specified amount e.g. the string CV01-00123 would be incremented to CV01-00124 (it's going to be used in a data input form for entering sequential sample IDs).
I'd really appreciate some wiser heads looking it over and giving any feedback as to whether there are any pitfalls with what I've done or if there would be better way to do it. Thanks in advance.