Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No SelectOnEntry in Access 97 Textbox?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00237824
Message ID:
00238539
Views:
14
On that, as far as I can tell, there's no way of doing it globally. There may be a way I'm unaware of. If so, would someone who knows please enlighten us both!

Hugo

>I guess I wasn't clear enough...
>
>I am wondering if I can make this change in ONE spot and have that change reflected in all numeric-type text boxes in the application. I wouldn't want to have to edit each and every numeric text box in each and every form of the application...or is this the only way? I guess I am asking if there is a nice way to simulate inheritance for numeric-type text boxes...
>
>Joe
>
>
>>This should work in any form of text box. Basically, the text box used for numbers, letters or any other kind of data is all the same, with options set differently (such as the entry mask, length, etc).
>>
>>HTH,
>>
>>Hugo
>>
>>>Hi Hugo,
>>>
>>>Is there a quick way to make this work this way for all numeric text boxes in an existing application? And not for non-numeric test boxes...
>>>
>>>Joe
>>>
>>>>This method will affect ALL the text boxes, datasheet vies, queries, you name it. What you can do is use the OnEnter event on the form and set the selstart and sellength fields. To select the whole field by code, use this snippet:
>>>>
>>>>me.text1.selstart = 1
>>>>me.text1.sellength = 0
>>>>
>>>>This will effectively de-select the entire field. To select the entire field by code, use this snippet:
>>>>
>>>>me.text1.selstart=1
>>>>me.text1.sellength = len(me.text1.text)
>>>>
>>>>HTH
>>>>
>>>>Hugo
"My get up and go must've got up and went"
-Steve Tyler, Aerosmith
Previous
Reply
Map
View

Click here to load this message in the networking platform