Re: scan from string / minus

2004-04-20 Thread shoneill
This is the correct answer.  %f interprets only numbers and either ,
or . depending on what your system uses as a decimal seperator.

If you want both numbers, you need to use a format specifier of %f-%f
which tells the function to get two numbers seperated by a -.  This
will return two values representing the numbers either side of the
-.

Alternatively, if the - is supposed to be a decimal point (The
number should be 20.20) you can specify that the - should be used as
a decimal seperator by using the format command %-;%f.

Hope this helps.

Shane.



scan from string / minus

2004-04-20 Thread Mc
hi all
i try to scan a string which contains strings as: 20-20. So i've
tried many options %f... but each time LabView returns 20... How
doing this ??
Thanx for answers

Matt