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 <[EMAIL PROTECTED]> 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, [EMAIL PROTECTED]
> Providenza & Boekelheide, Inc.
>
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to