|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^2: Working with COM objectsby Anonymous Monk |
| on May 23, 2009 at 07:21 UTC ( #765804=note: print w/ replies, xml ) | Need Help?? |
|
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 = OtherObjectTo get the by value treatment of the Visual Basic Let statement Object.Property = OtherObjectyou 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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||