[python-win32] type mismatch using win32com.client.GetObject
David
da6d.fierbaugh at gmail.com
Fri Sep 28 21:13:43 CEST 2007
The last 3 args are optional. I've tried dropping them, same results.
x1.FunctionX(arg1, arg2, arg3, arg4, arg5, arg6, arg7)
which yields the same error message.
x1.FunctionX(arg1, arg2, arg3, arg4, arg5, arg6)
Yields an argument not optional error message (not at the machine this runs
on, so can't give exact message.)
Changing the type of another argument yields the same result
ie---
>>> arg6
323
>>> arg6 = "true"
>>> x1.FunctionX(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9,
arg10)
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "<COMObject programX.activex.interface >", line 2, in FunctionX
com_error: (-2147352571, 'Type mismatch.', None, 6)
>>>
On 9/28/07, Tim Roberts <timr at probo.com> wrote:
>
>
> If arg7 is the output argument, then you probably want:
>
> arg7 = x1.FunctionX(arg1, arg2, arg3, arg4, arg5, arg6, arg8, arg9,
> arg10)
>
> I'm not sure if it will handle functions where the output argument is
> not the final argument.
>
> --
> Tim Roberts, timr at probo.com
> Providenza & Boekelheide, Inc.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20070928/da1ee22c/attachment.htm
More information about the python-win32
mailing list