Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert text string to numeric value in Lookout

Is there any way to extract a numeric value from a text string in Lookout? For example, I have a text string "<= 68.0 ppm" in an object, and I want to extract the value 68.0 as a numeric value for another object. I suppose I may need to strip characters or something, but the number start position and length are variables, so the mid(x,y) function does not work. I may be missing something obvious but any help would be appreciated.
0 Kudos
Message 1 of 2
(4,494 Views)
Is the character before the number fixed? If it is always ".....= XXX ppm", you can find "=" first and then use mid().
 

Message Edited by Ryan.S on 10-28-2007 09:30 PM

Ryan Shi
National Instruments
0 Kudos
Message 2 of 2
(4,472 Views)