Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text1.Format='K' not select 1 character text - why?
Message
From
29/01/1999 09:43:43
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00181762
Message ID:
00181778
Views:
9
>Have several textboxes with Format='K', to select all the text when the control gets focus. This works fine unless the text is a single character, then it does not select it. My client tabs to the textbox that already has a '7', types a '6', now she has '67'.
>
>Tried a small example and it (for me) consistently works this way. What am I missing?
>
>Thanks - Brenda

You may add to Text.Gotfocus event:
if len(rtrim(this.value))=1
 keyboard '{SHIFT+END}'
endif
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform