Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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 about the Monastery: (7)
As of 2016-06-28 03:36 GMT
Find Nodes?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...

    Results (349 votes). Check out past polls.