Try this. I used Locals.str for the string input.
Locals.num = Val(Right(Locals.str,Len(Locals.str) - FindPattern(Locals.str,"[0-9]")))
FindPattern() looks for a regular expression in the string. So I did a search for a numeric character.
Len() returns the length of the string.
Right() returns the last X characters in a string.
Val() converts a string into a numeric.
So Len() - FindPattern gives me the number of numeric characters at the end of the string. Right() then gets the numeric characters. And finally Val() converts the numeric characters into a numeric data type.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5