How to get a carriage return and/or line feed character to work for a MessageBox under Linux? Here’s some test code:
Set session = New NotesSession
currentPlatform = Lcase(session.Platform)
Select Case currentPlatform$
Case "unix":
NL$ = Chr$(10)
folderSeperator$ = "/"
Case "macintosh":
NL$ = Chr$(13)
folderSeperator$ = ":"
Case Else:
NL$ = Chr$(13) & Chr$(10)
folderSeperator$ = "\"
End Select
dim testString as string
testString$ = "* apples" & NL$
testString$ = testString$ & "* bananas" & NL$
testString$ = testString$ & "* oranges" & NL$
MessageBox testString$
Unix is supposed to use a single LF (ASCII 10) code to denote end of line. But the above test shows:
* apples* bananas* oranges
in my MessageBox under Linux. For Windows it gives the desired result:
* apples
* bananas
* oranges
I’ve tried various combinations of Chr$(13) and Chr$(10), but to no avail. I’ve checked that the relevant “Case” line is run for the current platform.
Cheers,
- Mike