> -----Original Message-----
> From: Ludwig, Michael
> Quoted from the web:
>
> this looks like an indexed property. The correct syntax
> to assign to them would be
>
> $COMComponent->LetProperty("Value", "Identity", $varUserStr);
> So I tried the following and it worked:
>
> $xslProc->LetProperty( input => $xmlDoc );
> I haven't understood the underlying issue, though. Is it that JScript
> handles different cases transparently that require different syntaxes
> in Perl and Visual Basic? Pointers welcome.
Using oleview.exe (from the ResKit) and the ITypeLib Viewer, I've
extracted the following info:
\,,,/
(o o)
------oOOo-(_)-oOOo------
(1) interface IXMLDOMDocument, async property:
[id(0x0000003d), propput, helpstring("flag for asynchronous download")]
HRESULT async([in] VARIANT_BOOL isAsync);
(2) interface IXSLProcessor, input property:
[id(0x00000002), propput, helpstring("XML input tree to transform")]
HRESULT input([in] VARIANT pVar);
-------------------------
Consider the following in Perl:
$dom->{async} = 1; # correct
$xslProc->{input} = $xmlDoc; # error
$xslProc->LetProperty(input => $xmlDoc); # correct
Is there anything in the type viewer information telling me which syntax
to use in each instance?
--
Michael Ludwig
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs