Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The HIGHLIGHT of my Day!
Message
From
10/10/2006 12:39:42
 
 
To
10/10/2006 12:30:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01160858
Message ID:
01160908
Views:
12
>>Hello Gurus!
>>
>>Problem today..........
>>
>>I have a textbox where I input text.... the text is used to filter a grid in realtime on the form....
>>
>>but... the user can TAB out of the textbox and tab to other controls, and THEN tab back into the textbox.
>>
>>The Text is now HIGHLIGHTED and SELECTED. When the user types into the textbox, the text disappears and is replaced with NEW text.
>>
>>I wanted the new text to append to the end of what text was already in the textbox.
>>
>>Is there a property to set this?
>>
>>Thanks!
>
>To append text add this to the WHEN of the textbox:
>
>This.SelStart = LEN(ALLTRIM(this.Value))

Bernard,

Shouldn't that be
This.SelStart = LEN(TRIM(This.Value)) + 1
to account for blank spaces at the start of the text and to avoid overwriting the last letter or the text?

Regards,
Jim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform