| Subject |
Re: Editor query |
| From |
Mervyn Bick <invalid@invalid.invalid> |
| Date |
Fri, 17 Jul 2020 11:13:44 +0200 |
| Newsgroups |
dbase.getting-started |
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.
|
|