This might work. I makes an assumption that there is an non-numeric character.
numbervar i;
for i := 1 to len({somefield}) do (
if not(isnumeric(mid(somefield,i,1))) then exit for
);
left({somefield},i-1)
There maybe a better solution.
Edited by kevlray - 11 Dec 2019 at 3:54am