Subject Re: FORMS USEING ENTER VERSES TAB
From Mervyn Bick <invalid@invalid.invalid>
Date Fri, 9 Sep 2022 11:55:23 +0200
Newsgroups dbase.getting-started

On 2022/09/09 10:47, Cornelius wrote:
> Hello there,
> When in a form I gave to use TAB to move to next entry.
> How can I use the ENTER key to do that.
>
> Regards,
>
> Cornenoius


Have a look at CUAENTER in the help file.  SET CUAENTER OFF will cause
the Enter key to behave like a TAB and will move focus to the next
entryfield control.

This behavior does NOT apply to pushbuttons.  If focus moves to a
pushbutton pressing the Enter key is the same as clicking on the
pushbutton with the left mouse button.

If you only ever have one form open at a time then you shouldn't have
any problems.  Be aware though that CUAENTER is a global property so
once you set it OFF it will affect every entryfield control on every
form in your application.

If you set CUAENTER ON, i.e back to its default setting, when you close
a form it will also be ON for any other forms that are still open even
if you had issued the command SET CUAENTER OFF in the open forms' onOpen
event handlers.

One can get round this by not setting CUAENTER ON if any other forms are
open.  You will either need to keep track of open forms yourself by,
say, updating a user-defined field in the _app object each time a form
is opened or closed or by using findinstance() to check for instances of
your forms in memory.


Mervyn.