LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

check a value for string

hi need help.
let say the user is inserting a value 012333333
how to check there is no alphabet was entered by the user?
 
0 Kudos
Message 1 of 4
(2,669 Views)
Hi jeyanthi,
you can use the "match pattern" function. Search for strings and if the "offset past match" is -1, then there is no string in it.
Mike

Message Edited by MikeS81 on 06-05-2008 07:18 AM
0 Kudos
Message 2 of 4
(2,668 Views)
thk u Mike
0 Kudos
Message 3 of 4
(2,657 Views)
In the Comparison palette is a function called Lexical Class. It will tell whether a character is numeric, upper case, lower case, white space, and a few other categories. It only works on one character at a time so you would need to loop through your input string.

Lynn
0 Kudos
Message 4 of 4
(2,636 Views)