Subject Re: editor filling
From Tim Ward <tim@goldengrovenurserydotcodotuk>
Date Wed, 10 Jan 2024 08:48:56 +0000
Newsgroups dbase.getting-started

On 09/01/2024 23:30, Moses Hanna wrote:
> Hello
> I have a form with an editor1 on
>
>     function EDITOR1_onLeftDblClick(flags, col, row)
>        form.editor1.setfocus()
>        form.editor1.keyboard(\"{ctrl+pgdn}\")
>        form.editor1.value += datetime()
>        form.editor1.lineno += 1
>        return
> I want the cursor to be at the beginning of a new line at the bottom of the editor
> can some gentleman rewrite the code please
>
>
>
Hi Moses

Try the following

form.editor1.setfocus()
form.editor1.value += DATETIME()
form.editor1.lineno = 1000000  //more than the rows will be
form.editor1.keyboard("{End}")
form.editor1.keyboard("{Enter}")

Tim