Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-09-25 18:08 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (287 votes). Check out past polls.