Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.
If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.
10-11-2006 02:13 AM
10-11-2006 02:30 AM - edited 10-11-2006 02:30 AM
Hi Nishant
I hope you are doing well. I have shown you three ways to this

The first is to search for \r\n and replace it with an empty string
The second converts to U8 array reverses it, deletes the first two elements, reverses the new array and convert back string.
The third uses match substring to find the \r\n and extract the string before the match.
David
Message Edited by David Crawford on 10-11-2006 08:31 AM
10-11-2006 03:51 AM
10-11-2006 04:06 AM
10-11-2006 04:43 AM
I forgot to ask what version of labview are you using?
I can post the example
David
10-11-2006 04:51 AM - edited 10-11-2006 04:51 AM
Dear David,
There is no sorry in help, you have help me that is the big thing, neways but i couldnt understand this reply, i dont know what you are trying to say?
I am using LabVIEW 7.1.
Thanks,
Nishant
Message Edited by Nishant on 10-11-2006 04:52 AM
10-11-2006 05:10 AM - edited 10-11-2006 05:10 AM
OK just re-read what I wrote and it was not quite right. When you enter the \r\n into a string constant it needs to be in \ Code Display.

If you enter \r\n into a normal string constant it will look like \\r\\n in \ Code Display which is not what you are searching for.
I have attached the example in 7.1 to let you see it in action. Hopefully it will make sense now.
David
Message Edited by David Crawford on 10-11-2006 11:10 AM