The last 3 args are optional. I've tried dropping them, same results. <br><br>x1.FunctionX(arg1, arg2, arg3, arg4, arg5, arg6, arg7)<br>which yields the same error message.<br><br>x1.FunctionX(arg1, arg2, arg3, arg4, arg5, arg6)
<br>Yields an argument not optional error message (not at the machine this runs on, so can't give exact message.)<br><br>Changing the type of another argument yields the same result<br>ie---<br>>>> arg6<br>323
<br>>>> arg6 = "true"<br><span style="font-family: courier new,monospace;">>>> x1.FunctionX(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10)
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Traceback (most recent call last):</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
File "<interactive input>", line 1, in <module></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> File "<COMObject programX.activex.interface
>", line 2, in FunctionX</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">com_error: (-2147352571, 'Type mismatch.', None, 6)</span><br>>>><br>
<br><br><div><span class="gmail_quote">On 9/28/07, <b class="gmail_sendername">Tim Roberts</b> <<a href="mailto:timr@probo.com">timr@probo.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>If arg7 is the output argument, then you probably want:<br><br> arg7 = x1.FunctionX(arg1, arg2, arg3, arg4, arg5, arg6, arg8, arg9,<br>arg10)<br><br>I'm not sure if it will handle functions where the output argument is
<br>not the final argument.<br><br>--<br>Tim Roberts, <a href="mailto:timr@probo.com">timr@probo.com</a><br>Providenza & Boekelheide, Inc.<br></blockquote></div><br>