Yes, Everything is possible in R:BASE!

As you asked, the key is the "pre-select" the default text.

So, here's how ...

-- Using AUTOSELECT in DIALOG Command
-- Author: A. Razzak Memon
-- Date Created: January 12, 2018
-- Last Updated:
   CLS
   SET VAR vTest TEXT = 'Yes You Can!'
   SET VAR vEndKey TEXT = NULL
   DIALOG 'Enter Text Message' vTest=26 vEndKey 1 +
   CAPTION 'Using AUTOSELECT' ICON WINDOWS +
   OPTION WINDOW_BACK_COLOR WHITE +
   |MESSAGE_FONT_NAME Tahoma +
   |MESSAGE_FONT_COLOR NAVY +
   |MESSAGE_FONT_SIZE 12 +
   |INPUT_BACKGROUND_COLOR YELLOW +
   |INPUT_FONT_NAME Tahoma +
   |INPUT_FONT_COLOR RED +
   |INPUT_FONT_SIZE 12 +
   |AUTOSELECT TRUE
IF vTest IS NULL OR vEndKey = '[Esc]' THEN
   GOTO Done
ENDIF
   CLS
   -- Do what you have to do here ...
LABEL Done
   CLEAR VARIABLES vTest,vEndKey
   RETURN

Enjoy the presentation!

Very Best R:egards,

Razzak

At 10:08 AM 1/12/2018, 'Lawrence Lustig' via RBASE-L wrote:

I'm starting a DIALOG command with a default value already in the variable used by the DIALOG.

The appearance is that the cursor is positioned at the beginning of the value in the DIALOG's
input edit.

I would prefer the value to be already selected so that anything the user enters replaces what's there already. I cannot find anything in the OPTIONS documentation to pre-select the value display.

Anyone know if this is possible.


--
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to