sellength to end

ingrid

Registered User.
Local time
Today, 14:17
Joined
Apr 10, 2003
Messages
42
I want to select text in a textbox from a given position to the end. I found the sellength property but I can only select text from the beginning to the given position.

Is it possible to select from a given position to the end?
 
Are you wanting to select the data into a variable? If so, use the Mid() function.

Or are you just wanting to select the data as if the cursor was over some of the characters in a textbox?
 
This really is an extension - as opposed to a new topic - of this thread.
 
I want to the select the data as if the cursor was over it.
 
Like this:

based on your initial question of finding and selecting from the g in ingrid.

Code:
    Dim i As Integer
    i = InStr(1, Me.Text0, "g")
    
    Me.Text0.SelStart = i - 1
    Me.Text0.SelLength = Len(Me.Text0)
 

Users who are viewing this thread

Back
Top Bottom