I am trying to make something where you enter something and if there's any text in it, it gets deleted. I've been wondering, how do I do this? Thanks!
Offline
ImagineIt wrote:
I am trying to make something where you enter something and if there's any text in it, it gets deleted. I've been wondering, how do I do this? Thanks!
Why would you need this?
Offline
WindowsExplorer wrote:
ImagineIt wrote:
I am trying to make something where you enter something and if there's any text in it, it gets deleted. I've been wondering, how do I do this? Thanks!
Why would you need this?
I'm tying to make something where I only want them to add text but if they add any numbers then I'll just take out the text to make it a number.
Offline
What are you storing the text in? A variable? A list?
Or are you just stamping the letters?
Last edited by Kileymeister (2011-09-07 17:29:30)
Offline
Kileymeister wrote:
What are you storing the text in? A variable? A list?
Or are you just stamping the letters?
variable.
Last edited by ImagineIt (2011-09-08 16:13:05)
Offline
"mixed + 0" should strip off all the letters and leave 0-9 numbers...
EDIT
Never mind that only works with trailing letters. You'll have to manually run through all of the characters if you want to strip out letters.
Last edited by LS97 (2011-09-08 16:15:47)
Offline
Make each character an item on a list and run through each item checking if it is a number of not. If it is a number add it to a different list or "join" it with a variable.
Offline
MoreGamesNow wrote:
Make each character an item on a list and run through each item checking if it is a number of not. If it is a number add it to a different list or "join" it with a variable.
Thanks!
Last edited by ImagineIt (2011-09-08 17:02:21)
Offline