Menu

#119 String to 1D Array doesn't recognize End of Line Constant

open
lib_string (12)
5
2014-05-23
2013-02-15
No

(OpenG String Library 4.1.0.12, String to 1D Array__ogtk.vi, LabVIEW 2012)

STEPS TO REPRODUCE:
1. Wire a string control into the input
2. Wire a LabVIEW End of Line Constant as the delimiter
3. Set "Ignore duplicate delimiters?" to FALSE
4. Type multiple lines of text into the string control

EXPECTED OUTPUT:
- The output should be a multi-element array of strings, where each element is a single input line

ACTUAL OUTPUT:
- The output equals the unchanged input, wrapped in a 1-element string array

NOTES:
- Output is an empty array if "Ignore duplicate delimiters?" is TRUE (see https://sourceforge.net/tracker/?func=detail&aid=3604799&group_id=52435&atid=466832\)

Discussion

  • Sze Howe Koh

    Sze Howe Koh - 2013-02-15
    • assigned_to: nobody --> jkring
    • labels: --> lib_string
     
  • Rolf Kalbermatter

    This error is expected behaviour. The End of Line constant in LabVIEW for Windows is \r\n but in a string control LabVIEW always uses \n only for line break unless one enters the \r\n explicitedly.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.