Marcia,
I did this about the same, except I used the line:
This.SelLength=This.MaxLength
Of course, you have to have something in that property to make it work properly.
I wondered why this didn't work so well on my numeric data textbox controls. I observed that the SelectOnEntry=.T. works just fine for numeric data entry.
You saved me some agony by putting this code up on UT. Thanks for doing that.
I didn't understand that you could place the command, NODEFAULT, anywhere in the event and it would signal to the base class (parent class) to not execute its normal routine. I originally though that there was some significance to it being at the end of your code as displayed below:
The following is placed in the GOTCOFUS:
Textbox::GotFocus()
This.SelStart = 0
This.SelLength = 12
NODEFAULT
Thanks a bunch,
Cecil Champenois
champenois@earthlink.net