From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,220 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,219 Views)
thk u Mike
0 Kudos
Message 3 of 4
(2,208 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,187 Views)