Return value from dialogbox/textfield to memo/richtext

I use this in a memo to open a dialogbox (Subform/layout), a select my value and close.

form := “DlgMessage”;

title := “Select answer”;

FIELD txtSubject := Subject;

FIELD txtMessage := Body;

@DialogBox( form ; [AutoHorzFit] : [AutoVertFit]:[NoNewFields] ; title );

FIELD Subject := txtSubject;

FIELD Body := txtMessage;

@Command([ViewRefreshFields])

it’s work fine besides there put no text to my bodyfield, only i subject

I guess that depends on that body is Richtext and txtMessage are textfield.

How will a do this.

Kind regards

Fredrik

Subject: Return value from dialogbox/textfield to memo/richtext

  • You are correct … txtMessage cannot be used to fetch the contents of a rich text field. Look up richtext manipulations in help, specifically how to use notesRichtextItem.- Hope this helps…

Subject: Return value from dialogbox/textfield to memo/richtext

Hi and thanx DavidCan you put me in right direction. It would be helpfull for me.

Fredrik