LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
function getTextWithoutNumber pText
put "0123456789" into tNum
repeat for each char tReplace in tNum
replace tReplace with "" in pText
end repeat
return pText
end getTextWithoutNumber
but I guess there is a more elegant way.
Best regards
Jean-Marc
But I think that Jean-Marc, by formulating his handler so that only ten iterations are required to filter any length of text, as opposed to looping through each char in the text itself:
...
repeat for each char tChar in tText
if tChar is not in "0123456789" then put tChar after tFilteredText...
is already pretty elegant. I only mention this to catch the eye of relatively new users who might appreciate this method, as opposed to that even more "basic" way...