Seperate numbers from text

Dwayne Rothe drothe at optusnet.com.au
Wed Apr 6 23:57:36 EDT 2005


Thanx to all who replied, I think Jeannes answer is probably the simplest to
use;

repeat for each char thisChar in myString
     if thisChar is a number then put thisChar after numbersOnlyString
end repeat

I was using a similar script but was only returning 1 number, looking at the
code above I now see I had
put tNums into (instead of after) tNumString. Ooops!

I NOW SEE THE LIGHT!

Cheers and thanx........

D.Rothe





More information about the use-livecode mailing list