05-07-2008 11:04 AM
It is a function that can be found in the comparison palette of LabVIEW.
rashid19672008 wrote:
What is lexical class?
You need to have LabVIEW installed, nothing else.
rashid19672008 wrote:
Do I need to install something to have access to it?
Once you found it, place it on the diagram and do a "right-click... help" on it. All clear? 😄
rashid19672008 wrote:
What does it do?
05-08-2008 03:35 AM
05-08-2008 03:43 AM
07-05-2022 10:51 AM
You could convert the string into a byte array and then in a for loop, compare every element of that array with your desired characters bytes amount on the ascii table, e.g for only numeric you would set a lower limit of 48 *ascii value of 0* and 57 *ascii value of 9* , then on the conditional terminal of the for loop, only allow the characters between them limits out, then convert the byte array into a string 🙂
07-05-2022 04:13 PM
I certainly hope the OP wasn't waiting 14 years for a solution. Plus, a reply to this earlier discussion was right on target regarding using the lexical class. The lexical class of a character tells you exactly what it is. No need to know the ranges of characters in the ASCII tables or create more complex comparisons, i.e., does this byte fall between x and y. Simply test if the character is of the lexical classes you are interested in.