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 20:23:42
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00351607
Message ID:
00352512
Views:
17
>>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've never had to use them, but it's worth checking out the various clipboard functions in FoxTools to handle this...
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform