Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to paste from clipboard in a general field on a form
Message
From
29/03/2000 19:49:50
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00351607
Message ID:
00352502
Views:
11
>I just put a ole general field for images on a form. I have a button near it that allows the user to select an image and it does a APPEND GENERAL into the field. This works fine. Even, when the user double-clic on the field on the form, it brings up the related application (paint or whatever is associated to the image).
>Unfortunately, I don't see how I can paste an image in the clipboard in this field. I know that, let's say in a browse, you open the general field, it brings you a kind of windows that you can paste in. But in the forms, it doesn't work. If I right-clic the image, it shows me a small menu whith only "Edit" as an option but it does nothing.
>>How are you trying to do it, Eric? It's working fine for me.
>>

Lots of different kinds of things might reside in the clipboard's buffers, and not all of them are easily addressed using just the _CLIPTEXT variable. You may need to write some API code or an ActiveX control that will provide programmatic access to the types of things you want from the clipboard buffer. The MSDN, or Dan Appleman's book onusing WIn32 with VB may be helpful, but will mean working at least in part outside of the VFP environment. I rem,ember having to write a small ActiveX control in VB to do some clipboard manipulation I needed to do involving non ASCII text formats placed in the clipboard by another application.

You're certain that the target system has an application installed that can act to perform basic OLE operations for the file type you want to paste in place? You may need to paste from within that application to ensure the proper OLE linkage is established.

>>>I am trying to paste images from the clipboard to a general field on a form and it doesn't work.
>>>ANy clue
>>>thanks
>>>eric
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform