@ross82573,
ross82573 wrote: . . . I remember back in high school when I wrote BASIC that you were
able to count back characters and check if those (like the 4th unit or
whatever) was a number or letter or whatnot. That's what I am looking for
in this......you know?
In the pseudocode the "4th unit or whatever" is the index into the
string (the part number). Indexing is from zero where zero is the first
character in the part number. Index zero and one must be characters,
the rest mus be numerals. You would write this as a subroutine called
with a pointer to the part number as input and the result as the output.
It assumes that there are utilities which can determine the length of the
string and whether a character is alpha or numeric.