Joined: 02 Dec 2010
Online Status: Offline
Posts: 2
Topic: Formula to removing all alpha chars in string Posted: 02 Dec 2010 at 10:16pm
Hi all
I need to remove all alpha characters in a string, the strings can be different lengths for example xx02134540564 (the xx will need to be removed), or xyzaba012345 ( the xyzabc needs to be removed)
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Posted: 03 Dec 2010 at 3:56am
No, there isn't, you would need to create one.
If the characters will never be mixed ie x0s9g2485j2, I would create a formula the loops through the string until it passes the IsNumberic() function. Something like:
local numbervar iCount :=1;
while not isnumeric(mid({table.field}, iCount)) do
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum