Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The following is the Perl code:Public Function returnScriptingObj1() As Object Dim tot As Object Dim debugFile As Integer debugFile = FreeFile Open "d:\debug1.txt" For Output As #debugFile Print #debugFile, "TEST" Set tot = CreateObject("Scripting.Dictionary") tot.Add "tom", "daddy" tot.Add "Ginger", "mommy" tot.Add "Caroline", "kiddy" Close #debugFile Set returnScriptingObj1 = tot 'returnScriptingObj1 = tot End Function
The following is the output from the perl code above:my $newObj = Win32::OLE->new("TestArray.PArray"); my $resultsArray; #= Variant(VT_BYREF, Variant(VT_EMPTY)); $resultsArray = $newObj->returnScriptingObj1(); print Dumper($resultsArray);<br>
First is it possible to get the Scripting.Dictionary object back to the Perl script? If so, what is missing?$VAR1 = bless( { 'Item' => undef, 'Count' => 3, 'CompareMode' => 0 }, 'Win32::OLE' );
Edit: added <code> tags. larsen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Returning a VB ScriptingObject to Perl app
by Jenda (Abbot) on May 24, 2002 at 14:33 UTC | |
|
Re: Returning a VB ScriptingObject to Perl app
by sparkyichi (Deacon) on May 24, 2002 at 12:09 UTC |