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
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