Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting data in field automatically
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00017016
Message ID:
00017056
Views:
72
>>>How do I automatically select the data in a field when a user enters the field?
>>
>>Try putting the letter K into the Format property of the data control (ie. Textbox). Look in help under "Format property" for more info.
>>
>>If this is not what you are looking for, please give more info.
>>
>>-Doug-
>
>
>Try this...
>
>NODEFAULT
>TextBox::GotFocus
>THIS.SelStart = 0
>THIS.SelLength = LEN(ALLTRIM(THIS.Value))
>
>in your text box gotfocus event
>
>HTH
>
>Jon

Sorry,

NODEFAULT
THIS.SelStart = 0
THIS.SelLength = LEN(ALLTRIM(THIS.Value))

I subclassed it.

JP
Jon Paskett

Microsoft Certified Systems Engineer
We all have to start somewhere...
Sometimes over again!
Previous
Reply
Map
View

Click here to load this message in the networking platform