Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I pass an Equate label to another method? [OLE]

Status
Not open for further replies.

wniemi

Programmer
Apr 7, 2005
1
US
Hello:

I have an object I created with:

?APServer{Prop:Create} = "APServer.Object"

my method call passing the equate label looks like this:

Test(?APServer)

What should my method prototype look like to handle the pointer to an object in mememory?

I tried this:

Test Procedure (?APServer)

That doesn't work. I am trying to pass the equate label to the method so that I can continue to use the object I created within the method. Please help? Thanks.
 
Hi

An equate label is just a long (32 bit integer) and is not a pointer to your object. The equate label is just a number for the screen control, I think you need a handle or something to pass the object. You can also pass the object with help of the clipboard (prop:copy, prop:paste).

goodluck,
bas
 
Hi,

Look in PROP:Object in the help. But I am not sure how to pass it to other procedures. Better to pass the FEQ as a LONG integer.

PROP:Object Gets the Dispatch interface for the object. (READ ONLY)

In VB the toolbar and tree control use the image-list control to show icons in the tree control and on the buttons on the toolbar. To associate an image control with a toolbar, use the following code:

?toolbar{'ImageList'} = ?imagelist{prop:eek:bject}

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top