06-16-2022 05:31 AM
Hello All,
i need to create array of strings (control) which will accept only numeric characters, and not letters.
For string control which is not array, i already did it, using some examples from this forum.
This works fine but there is problem by using delete, backspace and arrow buttons.
But, when string control is changed in to array of string controls, then i can type anything, not just numbers...
Can someone advise how to proceed?
Thanks.
06-16-2022 06:02 AM
You can do the same by means of a dynamic event registered from the array element reference.
06-16-2022 06:29 AM
Reminds me to this
06-16-2022 07:06 AM
Why not just use an array of numerics?
06-16-2022 07:22 AM
Because later will be accepted for example 0-9, '-',':', and some other characters, posibly couple of letters.
That's why i need to have limitation which character can be enter in string, and not able to use numeric array.
06-16-2022 08:42 AM
This is what I use to remove/ include certain characters in a string.Not sure if this will help you.
06-16-2022 09:51 AM
Don't forget to catch Key Repeat? events (when user holds a key).
And you also need to catch Value Change events (when user does a copy-paste).
06-16-2022 11:15 AM
@milan87 wrote:
Because later will be accepted for example 0-9, '-',':', and some other characters, posibly couple of letters.
That's why i need to have limitation which character can be enter in string, and not able to use numeric array.
Then just do this:
06-17-2022 06:36 AM
@paul_cardinale wrote:
@milan87 wrote:
Because later will be accepted for example 0-9, '-',':', and some other characters, posibly couple of letters.
That's why i need to have limitation which character can be enter in string, and not able to use numeric array.
Then just do this:
I think OP means later the array of strings control must accept for "example 0-9, '-',':', and some other characters, possibly couple of letters".
So, that would require a strings.
06-20-2022 01:05 AM - edited 06-20-2022 01:27 AM
One more thing..
Could you please explain me why this work when we use dynamic user event and not when we just put array in event structure, and chose key down?
vs
I'm asking because i use actor framework, and not sure how to implement this array element property node.
Thanks.