Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I select a text?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00018921
Message ID:
00018958
Views:
41
>>Dear Visual FoxPro users
>>
>>I want the text in a textbox to be selected when the textbox get the focus, but how do I do it?
>>I have tried:
>>
>>thisform.txtPersonNr.selstart = 0
>>thisform.txtPersonNr.sellength = 10
>>
>>in the GotFocus event, but it didn't worked.
>
>In vfp5, selectonentry works again, like in 2.x fp. In vfp3, see MS KB doc Q135626 for several methods of doing this.

Hi Bruce,

Don't know if this is a bug or not, but I have tried the following...
Format = K
SelectOnEntry = .T.

NODEFAULT
TextBox::GotFocus
THIS.SelStart = 0
THIS.SelLength = LEN(ALLTRIM(THIS.Value)) in got focus!
Don't know where to go from here.
Jon Paskett

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

Click here to load this message in the networking platform