I'm trying to find the position of the first value that is not a numeric value within a string.
pTxtNumber is passed in and could be 10-15672 for example. So I want to return position 3 because this is the first non numeric character. Then I want to chop of the string up to and including this character so that I am left with 15672.
This code i initially did checks for where the numeric value begins but now i want to do the opposit.
FOR i := 1 TO STRLEN(pTxtNumber) DO BEGIN
IF Pos = 0 THEN
IF FORMAT(pTxtNumber) IN THEN
Pos := i;
Any help would be greatly appreciated.