Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: Working with COM objects

by Anonymous Monk
on May 23, 2009 at 07:21 UTC ( #765804=note: print w/replies, xml ) Need Help??

in reply to Re: Working with COM objects
in thread Working with COM objects

In Win32::OLE property assignment using the hash syntax is equivalent to the Visual Basic Set syntax (by reference assignment):

        $Object->{Property} = $OtherObject;

corresponds to this Visual Basic statement:

        Set Object.Property = OtherObject

To get the by value treatment of the Visual Basic Let statement

        Object.Property = OtherObject

you have to use the LetProperty() object method in Perl:

        $Object->LetProperty($Property, $OtherObject);

LetProperty() also supports optional arguments for the property assignment. See OBJECT->SetProperty(NAME,ARGS,VALUE) for details.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://765804]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2016-10-28 12:18 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (383 votes). Check out past polls.