Domino Code Fragment

Code Name*
How to Change the Caption on a Multi-line LotusLabel in LotusScript
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.13.58.121.131
Description*
The following sample script places the caption "This is a test. This is only a test." on two lines.
Type*
LotusScript
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
Problem:
Using LotusScript, how can you change the caption on a dialog's text box (of class LotusLabel) to
include multiple lines of text?

Solution:
When setting the caption, include both a Carriage Return and a Line Feed at the end of each line.

Sample Script:

The following sample script places the caption "This is a test. This is only a test." on two lines.

Sub Click(Source As Lotuslabel)
CRLF$ = Chr$(13) & Chr$(10)
Source.Caption = "This is a test." & CRLF$ & "This is only a test."
End Sub