>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.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.