CRLF with VB?

When I read a field-Value containig Newlines and write it back to the notes Database (I do it using a profile Doc) the newlines dissapear…

Anyone who knows why?

since Gary Devendorf is no longer with Iris, who else could know this?

Here my Code Snipped from VB.Net

using Domino

dim profil as Notesdocument

profil = db.getprofiledocument(“myProfile”)

dim item as Notesitem

item = profil.getfirstitem(“myField”)

dim wert as String = item.values(0)

'the debugger shows, we do have chr(13) & chr(10)…

profil.replaceitemvalue(“myField”,wert)

profil.save(true, false)

after that when opening the db in Notes, the newlines have gone ;-(

in my Notes-application where I fill default values…no more Newlines…

Subject: Notes is a funny beast. Internally it uses Char(0) as a CRLF. So make them that.

Subject: RE: Notes is a funny beast. Internally it uses Char(0) as a CRLF. So make them that.

very funny.

chr(0) terminates the string (seems .NET was implemented in C)

→ doc.replaceItemValue(“myField”, “juhu” & chr(0) & “jaja”)

leads us to “juhu”. Just “juhu”

;-(

Subject: RE: Notes is a funny beast. Internally it uses Char(0) as a CRLF. So make them that.

I think you need to try just chr(10)

Subject: RE: Notes is a funny beast. Internally it uses Char(0) as a CRLF. So make them that.

same effect ;-((

I now have a postopen event in my Notesdb to read & write the fields…but this really sucks!