04-05-2017 12:15 PM - edited 04-05-2017 12:24 PM
Whenever the string changes (or use update while typing), you could scan it as I64 using a hex format code and reject it if the resulting value is outside the range of a valid 32bit number. Use an event structure. You could even play with filtering events.
This is probably preferred over a U32 control, because you can also add other validation tests. A U32 would turn into FFFFFFFF if you enter too many characters, still valid but unrelated to most of the entered characters. 😉
Also note that your [continue] button has incorrect mechanical action.
04-05-2017 12:22 PM
MY41047333 is 10 characters. How do you figure to shoehorn this into a U32?
04-05-2017 12:28 PM
I have not gotten a clear definition of the storage limitations. 32-bit (U32) or 32-hexadecimal characters (Array of 4-U32's or 2-U64) or 32-characters (Array of 32-U8's, 16-U16's, 8-U32's, or 4-U64's). Waiting on the examples to be posted of valid and invalid entries including ones for length.
04-05-2017 12:29 PM
@billko wrote:
MY41047333 is 10 characters. How do you figure to shoehorn this into a U32?
It is getting confusing because too many contributors keep guessing because of lack of information.
The only valid number from the OP is 1234ADCF, which fits nicely into a U32. No examples of invalid numbers has been given.
04-05-2017 12:32 PM
Hi Minions,
Even i have the same doubt, valid entries can be any value for example one of the serial number i came across is 123456GH which has no hex character.
And invalid entry will be w.r.t length of the serial number.
Aniket
04-05-2017 12:35 PM
Invalid entries ex - 1234569abcdefghdavfrghjjkdavdavfgr w.r.t length once converted into hex (32 bit length)
04-05-2017 12:37 PM - edited 04-05-2017 12:38 PM
@aniketjha wrote:
Even i have the same doubt, valid entries can be any value for example one of the serial number i came across is 123456GH which has no hex character.
And invalid entry will be w.r.t length of the serial number.
OK, but 123456GH will not fit in 32bits. To simply limit the string length, use something like this.

04-05-2017 12:46 PM
Thanks Altenbach,
I will try to implement as per your suggestion, and will post the progress.
Regards
Aniket
04-05-2017 12:48 PM
Also, 123456GH this will fit if it's in a range of string length from 0-32, not necessarily it should be 32 bit length but max 32 bit length.
04-05-2017 12:58 PM
@aniketjha wrote:
Also, 123456GH this will fit if it's in a range of string length from 0-32, not necessarily it should be 32 bit length but max 32 bit length.
So what you really have is an 8 character limit on your serial number string. In that case, well, do what I already told you to do with the Event Structure.