Select Entire Field

  • Thread starter Thread starter David S.
  • Start date Start date
D

David S.

Hello,
I'd like to programatically change the field entry
behavior on a form in a similar manner as
\tools\options\keyboard\Select entire field\. There are
times when one or the other is more convenient. Thanks
for your help.

David S.
 
Search help on SetOption and GetOption in Visual Basic.

You can change everything that's available on the options panel. You just
need have the correct text for the option, which is not necessarily how it
appears in the options panel. The correct text is in the help file.

Be good to your user! Remember their original setting of the option and
restore it when you are done!


Dim intBEF as Integer

intBEF = GetOption("Behavior Entering Field")

SetOption "Behavior Entering Field", 0 ' select entire field is the first
one listed, so use index 0

'.... Do stuff like this

'restore the user's option
SetOption "Behavior Entering Field" = intBEF


HTH,

Kevin
 
Back
Top