Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Format='K', SelStart = 0, SelLength = 7; Nothing works?
Message
From
29/04/1999 13:01:50
 
 
To
29/04/1999 10:26:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00213443
Message ID:
00213536
Views:
28
>I have a disabled textbox on a form. When i click
>on a command button I enable the textbox and then do
>a setfocus() to that textbox. All that works but
>I also would like the textbox to have its contents
>already selected.
>
>I have tried the following measures but to no avail:
>
>textbox.Format = 'K'
>
>textbox.When
> This.sellength = 7
> this.selstart = 0
>
>How can I get the textbox to highlight its contents
>when it is enabled and the focus has changed to that
>object?

In the GOTFOCUS() event:

DODEFAULT()
this.selstart = 0
this.sellength = 100 (any value as large or larger than the field
this.refresh
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform