Subject Re: Editor query
From Rob Rickard <rob@no.spam.calculation.com.au>
Date Fri, 17 Jul 2020 08:54:13 -0400
Newsgroups dbase.getting-started

Hi Mervyn
Sorry. what i want to do  is use the editor and take the information out of the editor like it was entered into the entryfields. i dont need to save it.
Bit like what Tim suggested.
Hope i make more sense this time.

Regards Rob

Mervyn Bick Wrote:

> On 2020-07-17 07:05, Rob Rickard wrote:
> > Hi All
> > Wondering if anyone can help me.
> > i am trying to use the editor in my program to make it look better.
> > At the moment i am using entryfields and at the end of the entryfields i add " %0A".
> > i need to add these to the entryfield to send in a text message.
> > The entryfield method works ie trim(entryfield.value)+" %0A" but i am struggling to get the same results from the editor.
> > ideally i want something that resembles the editor layout. The result i am getting is just 1 continually line.
>
> I'm not quite sure what you need but, in general, to add lines to the
> bottom of the existing display in a editor control
>
> form.editor1.value += trim(form.entryfield1.value+chr(13)+chr(10)
>
> If you want to insert the line at the top of the exiting display
>
> form.editor1.value =
> trim(form.entryfield1.value)+chr(13)+chr(10)+form.editor1.value
>
> Mervyn.
>
>
>
>
>