At 12:27 AM 3/7/2005, Doug Hamilton wrote:
... I would also like to have it Autoselect, as it does when user
first tabs into it, so user doesn't have to delete the null symbol.
But I can't get the Autoselect property to work. The following code
is in an On Exit eep for the birth month variable control;
vIndBirthMM is the integer variable defined before the form starts,
BirthMM is the componentID. Autoselect is checked on the properties.
I have also tried putting the Autoselect before the Set_Focus with
no luck and tried moving the Autoselect to an On Entry eep, again
with no luck. Any ideas?
IF vIndBirthMM > 12 THEN
PAUSE 2 USING 'Invalid Month' +
CAPTION 'caption' Button 'OK'
SET V vIndBirthMM = NULL
PROPERTY BirthMM SET_FOCUS 'true'
PROPERTY BirthMM autoselect 'TRUE'
ENDIF
RETURN
Doug,
Use the "SELECTALL" property to achieve that gaol!
Here's how:
IF vIndBirthMM > 12 THEN
PAUSE 2 USING 'Invalid Month Entered!' CAPTION ' Application Caption' +
ICON STOP Button 'Press any key to re-enter ...' +
OPTION BACK_COLOR WHITE +
|MESSAGE_COLOR WHITE +
|MESSAGE_FONT_COLOR RED +
|BUTTON_COLOR WHITE
SET VAR vIndBirthMM = NULL
SKIP TO vIndBirthMM
PROPERTY BirthMM SELECTALL 'TRUE'
RETURN
ENDIF
RETURN
For complete details and examples, use R:Docs (version 2.1 or higher):
01. Start R:Docs (ver 2.1) or higher ...
02. Main Menu | Property Command | Build Syntax for PROPERTY Command
Category: Variable Controls
Control: Variable Edit
Property: SELECTALL
Value: TRUE
Notice the exact Syntax, Description as well as the option to
Copy PROPERTY Syntax to Windows Clipboard.
03. Click on [Copy PROPERTY Syntax to Windows Clipboard] button.
04. Close the R:Docs Syntax Builder.
05. Paste the entire syntax in your command file.
Enjoy and make sure to have fun!
Very Best R:egards,
Razzak.