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

Re: Trying to re-write some VB-OLE into PERL-OLE

by Courage (Parson)
on Sep 23, 2004 at 13:30 UTC ( [id://393277]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Trying to re-write some VB-OLE into PERL-OLE

you need pass variant by reference.

Get idea from my post at Re: Win32::OLE and WMI

  • Comment on Re: Trying to re-write some VB-OLE into PERL-OLE

Replies are listed 'Best First'.
Re^2: Trying to re-write some VB-OLE into PERL-OLE
by juo (Curate) on Sep 24, 2004 at 00:32 UTC

    courage, you made my day today, it is indeed the usage of Variants that was required in this case, still a little bit difficult for me to understand but at least I can make it work and move on now. Thanks a lot and thanks to jdporter for having faith in me, he gave me the courage to keep looking, and it did not take six months. :-). Just for the record the piece of code.

    for my $placement ( in $Recipe->Placements) { my $PartNum = Variant(VT_VARIANT|VT_BYREF, ""); $Library->FindPart($placement->PlacementPart->Part->Name, +$PartNum); my $FeederType = Value{$PartNum}->MachineValue("FEEDERWIDT +H") ; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://393277]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.