VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Select text function (Used to get a particular selected text)

by Olabenjo Tunde (5 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Originally Published: Fri 8th July 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Select text function (Used to get a particular selected text)

API Declarations


'add the constant EM_GETSELTEXT=WM_USER +62

Rate Select text function (Used to get a particular selected text)



dim r as long
dim s as string
s= String$(255,0)                            'length of character
r= Sendmessage (m_hWnd,EM_GETSELTEXT,0 ByVal s)
SelText=Left$(s,r)
End function

Download this snippet    Add to My Saved Code

Select text function (Used to get a particular selected text) Comments

No comments have been posted about Select text function (Used to get a particular selected text). Why not be the first to post a comment about Select text function (Used to get a particular selected text).

Post your comment

Subject:
Message:
0/1000 characters