I assume the string has been entered by the user and you want to verify whether the string content is correct. In such case you would implement a loop to iterate through the string characters and test character by character whether it corresponds to the expected syntax. For example, if the string is allowed to store ascii characters A-Z and digits 0-9, following could be the implementation:
var string text = .... // your string
var int32 len = text.length;
var bool valid = len > 0;
var int32 inx;
for ( inx = 0; ( inx < len ) && valid; inx = inx + 1 )
if ((( text[inx] < 'A' ) || ( text[inx] > 'Z' )) &&
(( text[inx] < '0' ) || ( text[inx] > '9' )))
valid = false;
if ( !valid )
trace "The text is not valid";
I hope it helps you further.
Ask Embedded Wizard
Welcome to the question and answer site for Embedded Wizard users and UI developers.
Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!