Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API Calls for clipboard text
Message
 
To
25/05/1999 19:22:35
Scott Butts
Ims Specialty Services
Twin Falls, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00222712
Message ID:
00222889
Views:
17
>Anyone know the win api calls to get the data from the clipboard and store it to a variable? I am using VFP5.0 and have looked at _cliptext and getclipdata() in foxtools.fll and none of these return the 'correct' value. The _cliptext seems to strip the chr(13) chr(10) and getclipdata() doesn't seem to do anything(I am using openclip() first).
>
>Let me explain a little more. I make a call to another application(written in C++) that sends me back some information on the clipboard. When I look at the clipboard with clipbrd.exe everything looks fine, when I paste the clipboard text into any other application it pastes fine. But when I look at the text in FoxPro it seems to remove any chr(13) chr(10) information. I need to parse this data and the chr(13) chr(10) characters are the sperators. Any Ideas? Thanks

Hi Scott,

I don't think that there's an easy way to do this via the API or foxtools. Is the application that's sending the information via the clipboard setting the format to CF_TEXT? If so, then at least the carriage returns should be in the _CLIPTEXT system variable.

I would think, however, that using DDE services for this would be a better solution.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform