LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is Scan String for Tokens documented correctly?

I attempted to parse the following string using " as the only delimiter (no operators):

this "is a test" for "you and me"

The first call produced: "this " w/o the quotes.

I expected "is a test" w/o the quotes.

The documentation says the function will return tokens "surrounded by" delimiters. If this is not a bug, I think the documentation should be improved.

W. Brown
0 Kudos
Message 1 of 4
(2,936 Views)
some links that might help you ...

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=506500000008000000790A0000&ECategory=LabVIEW.LabVIEW+General

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/b9db9ccce998d375862569130063d6b9?OpenDocument

http://digital.ni.com/public.nsf/websearch/317a20eb99f64dea86256700005f0403?OpenDocument
0 Kudos
Message 2 of 4
(2,936 Views)
The documentation and examples show that the delimiters are used *between* tokens. So with " as a delimiter, the first token would be "this " w/o the quotes. The second token would be "is a test" w/o the quotes.

And, yes, the documentation is a little vague.

Rob
0 Kudos
Message 3 of 4
(2,936 Views)
Thank you for commenting on the Scan String for Tokens documentation. We will look into this issue and try to make the documentation more clear about how this function works.

We're constantly striving to improve the documentation, so any specific suggestions you have are welcome. In the future, please send any comments on National Instruments documentation to techpubs@ni.com so we can address your concerns in a timely matter.

Kelly Holmes
LabVIEW Documentation Team
Kelly H
LabVIEW Documentation
National Instruments
0 Kudos
Message 4 of 4
(2,936 Views)