# using endOfLine.OSX

**URL:** <https://forum.xojo.com/t/using-endofline-osx/49456>\
**Category:** Getting Started\
**Created:** [July 22, 2019, 7:22pm UTC](https://forum.xojo.com/t/using-endofline-osx/49456 "2019-07-22T19:22:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carl\_Gibson](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/b2d939/32.png) [@Carl\_Gibson](https://forum.xojo.com/u/Carl_Gibson)\
**Post date:** [July 22, 2019, 7:22pm UTC](https://forum.xojo.com/t/using-endofline-osx/49456/1 "2019-07-22T19:22:41Z")

</div>

I get a black diamond-? when I try to print to a message box or textArea. The data is coming from a text file stored on the desktop and recovered using a binaryStream. This behaves as expected when the data is coming directly from the program. I prefer not to use a listbox. When I substitute cr="_" I get a string that has "_" as expected, but of course no linefeed. I could search and replace the diamond, but I have no idea what chr() it is assigned.

Dim cr As string  
cr=EndOfLine.OSX  
if indexBox.Value=TRUE then Message="Index: " + str(me.listIndex+1) + cr  
if titleBox.Value=TRUE then Message=Message + "Course: " + (c.courseTitle) + cr  
if InstructorBox.Value=TRUE then Message=Message + "Instructor: " + (c.courseInstructor) + cr  
if levelBox.Value=TRUE then Message= Message + "Course Level(s): " + (c.courseLevel)  
MsgBox(Message) + cr

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![Norman\_Palardy](https://forum.xojo.com/user_avatar/forum.xojo.com/norman_palardy/32/169_2.png) [@Norman\_Palardy](https://forum.xojo.com/u/Norman_Palardy)\
**Post date:** [July 22, 2019, 7:34pm UTC](https://forum.xojo.com/t/using-endofline-osx/49456/2 "2019-07-22T19:34:48Z")

</div>

[https://blog.xojo.com/2013/08/20/why-are-there-diamonds-in-my-user-interface/](https://blog.xojo.com/2013/08/20/why-are-there-diamonds-in-my-user-interface/)

---

<div class="post-metadata">

**Author:** ![Carl\_Gibson](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/b2d939/32.png) [@Carl\_Gibson](https://forum.xojo.com/u/Carl_Gibson)\
**Post date:** [July 22, 2019, 8:01pm UTC](https://forum.xojo.com/t/using-endofline-osx/49456/3 "2019-07-22T20:01:23Z")

</div>

Norman,

It is very rare that something I do is fixed on the first try!

Thanks!!!

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [April 29, 2021, 4:01pm UTC](https://forum.xojo.com/t/using-endofline-osx/49456/4 "2021-04-29T16:01:13Z")

</div>


