Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cut, Copy and Paste functions
Message
 
To
21/07/1998 17:28:03
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00119820
Message ID:
00120193
Views:
20
Hi Jim --

>>This doesn't work because the selected text could be on any form and any control.<<

Are you comfortable with APIs? The typical way to do this would be to use GetFocus or GetForegroundWindow to obtain the hWnd of the active textbox. Then call SendMessage with EM_GETSEL. On return, wParam will hold the starting position, and lParam the ending position, of the selected text. If these values are equal, no text is selected.

Later... Karl
Previous
Reply
Map
View

Click here to load this message in the networking platform