Hi Nadya.
>> This seems to work, thanks. I also want to select the whole textbox, when it gotfocus(). I have SelectOnEntry .t. and I also tried to set format to K, but it didn't help. What else can I do? <<
If you want the entire textbox to be selected, even when you click into it with the mouse, try this is the GotFocus of the textbox:
Textbox::GotFocus()
This.SelStart = 0
The.SelLength = 12
NODEFAULT
Marcia