Converting text field to rich text field using lotus script

I have a rich text field on one form.I am saving that form using,

call doc.save(true, false)

the richtext field is getting saved as text field.

so I want to change the type of field at the time of saving the document.

so Please suggest me the way to change the type of field from text to rich text.

Subject: converting text field to rich text field using lotus script

The type of a field cannot be changed directly. But I cannot believe that the type is set to text, when you save a richtext field.

Could you please give us your code. I suspect you are using “doc.field = value” and that would result in a text field.

You might try:

dim rtitem as NotesRichTextItem

set rtitem = new NotesRichTextItem(doc, “name”)

rtitem.AppendText(“text”)