I have been looking for a way to test if a string or character is a digit or alphanumeric value. In most programming languages there is a function called IsDigit, IsNumeric or something similar, but I cant find that feature in flexscript.
I can use the stringtonum or .tonum methods, but since they always return 0 which is a numeric value rather than NULL, that is rather unhelpfull and a bit of an error in my opinion. You cant tell if the character you converted was actually a 0 or any other character that isnt numeric.
This would be rather usefull when trying to rename autogenerated objects that automatically get a number at the end of their name. I want to find out how many characters the numer at the end of the name is and then replace it with a code of my own choosing.