LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

format & strip?

Hi folks,
argh.
I'm dorking around with this function but cant get it to do what I think
it does. maybe I'm using the wrong function?

Here is what I'm trying to do"
I have a string with a 6 character number and a comma. the number is a
negative number
-78.34, so in all I have 7 characters. I need to strip off the comma
and end up with a plain ol -78.34

I originaly used the spreadsheet tring to array but that is for a long
string of data where my data is more of a one step at a time (part of a
for loop).


the way I tinkered with it is as follows:
string of 7 character (including the unwanted comma) data feeds into the
string input (top left)
string with just a comma feeding into Format string input (middle
left)

output (top right) to indicat
or.


any hints I'd really appreciate it.

thanks

Vic
0 Kudos
Message 1 of 2
(3,010 Views)
Hi Vic;

An alternative can be to use the vi "Search/Split String", located in the function palette:

String -> Additional String Functions

Set the variable "search string/char" as comma (you can use a constant). The output "substring before char" is what you want.

Best regards;
Enrique
www.vartortech.com
Message 2 of 2
(3,010 Views)