--- In [email protected], "entropyreduction"
<alancampbelllists+ya...@...> wrote:
>
>
> --- In [email protected], "Sheri" <sherip99@> wrote:
>
> > can now get_object_description for the created Application
> > object. But can no longer do much of anything else due to
> > optional variable problem "Type Mismatch" errors. E.g., leaving
> > off unicode for now:
> >
> > win.debug(appref.Selection.Item(1).contents)
> >
> > produces
> >
> > ERROR: com.method: Optional variable type problem (sys code
> > 80020005: "Type mismatch.")
>
> > If I click ok, new error message says:
>
> > Invalid use of period: cannot load plugin, invalid handle value,
> > or invalid function.
>
> Which suggests that something that's supposed to be coughing up a
> handle, isn't. The only method call that's (a) supposed to return
> a handle and (b) take's arguments, seems to be
>
> appref.Selection.Item(1)
>
> So does
>
> h = appref.Selection.Item(1)
>
> generate type mismatch error?
Yes
>
> If so, I need results from
>
> h = appref.Selection
> h.get_object_description("fn")
> (not all of it, just tell me type of parameter supplied to Item; or use your
> favour type analyser to get same info).
Selection is an Object
The listing from h.get_object_description("fn") includes:
get property: IDispatch* Item(VARIANT index)