Number only user input problem ( text edit )
Hello
I need to ensure that only the digits 0-9 are input into a series of lists limited to a maximum of 8 digits for a study. So after much trial and mainly error using regexp I stumbled upon the attached patch. This works except when the digit 0 is input as the first digit , it doesn't behave as expected, allowing for infinite 0's to be input or else deleting the first 0 when the user input is sent to a list.
Any help would be greatly appreciated.
Max numbers do not accept leading zeroes, only if packed as symbols, like "001".
Thanks for the reply, yep thanks for informing me of that. That makes me perplexed as how to go about performing what is surely a relatively simple task.
Is there a quick way to pack the input of text edit into a symbol, keep leading zeros to output the numerical contents as a list in a message using regexp (\\w) @substitute "%1 " for instance?
The user input needs to keep zeros and be split into its individual digits in a message box for further processing.
Its the last hurdle I need to overcome... hmmm.
I don't really understand what you're trying to do, but regarding preceding zeros, you could use the second ascii code outlet, subtract 48, then collect into a list-- the list will contain any preceding zeros: