New line in Lotus Script

Hello all,I am still rather new to Notes Development. How do I insert a newline character into a string via lotus script. Here’s the line

Call doc.ReplaceItemValue(“history”,Cstr(Now())+" - Monthly Contribution Added."+ Chr(13)+ “Previous months added”)

Chr(10), vbcrlf, and chr(13) all created a type mismatch. Please Advise

Also could someone recommend some other good websites and book resources where I can find Lotus Script and notes code snippets.

Thanks

Subject: How about “Chr$ ( )”?

Subject: new line in Lotus Script

normally when I build a string I build it prior to the actual assignment and that works. In your case it would look something like:

'begin

Dim ws As New NotesUIWorkspace

Dim doc As NotesDocument

Dim uidoc As NotesUIDocument

Dim newVal As String

Dim whenNow As String

Set uidoc = ws.CurrentDocument

Set doc = uidoc.Document

whenNow$ = Today()

newVal = whenNow$ & " - Monthly contribution Added." & Chr(10) & “Previous months added”

doc.history = “”

doc.history = newVal

'end

Openntf.org has great code examples within the projects of the site. The Domino Designer help itself is a great source of examples and code snippets also.

Subject: Chr(13) + Chr(10) works for me.

Call doc.ReplaceItemValue("history",Cstr(Now())+" - Monthly Contribution Added."+ Chr(13) + Chr(10) + "Previous months added")