?
Solved

OLEdrag with an object or variant

Posted on 1998-11-04
3
Medium Priority
?
148 Views
Last Modified: 2010-04-30
Is there any way to assign an object (or a variant type, or class for that matter) to the data object in an OLEdrag event. ie. so it can be retrived with data.getdata...

I know all the work arounds, so all I need is a yes and the method to do it, or No and a quick explination of why not.
0
Comment
Question by:wford
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Mirkwood earned 200 total points
ID: 1443122
A variant can be done.  I can give you a function that converts a variant to a binary array and back.

A class can not be done since you are passing process boundaries and the memory location of your class is not known in the other process. In C you could do it within a process but not in VB.
0
 
LVL 1

Author Comment

by:wford
ID: 1443123
The variant I can fudge like this, but I really wanted to pass a Collection class using the OLEdrag, but  only inside my project( to start with)

Hum ho, This was exactly the problem I thought of, but it would neated up my code greatly if I could do this, spewing! It is good to have conformation though.

I will leave this unmarked for 10 hours or so, for any dissenting or agreeing comments then award the points, thanks MirkWood
0
 
LVL 1

Author Comment

by:wford
ID: 1443124
tak
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question