I confirm VARIANT.missing works.
Though None, VARIANT.empty, and VARIANT.null do not.

Thank you.

2014-10-20 0:35 UTC+01:00, Andrew MacIntyre <andrew.macint...@acma.gov.au>:
> If I recall correctly, you need to supply a VARIANT.missing for each
> optional argument that you don't want to otherwise explicitly provide.  I
> don't know whether supplying None also works.
>
> I think an alternate approach might be to use only named arguments.
>
> -------------------------> "These thoughts are mine alone!" <---------
> Andrew MacIntyre           Operations and Services Branch
> tel:   +61 2 6219 5356     Communications Infrastructure Division
> fax:   +61 2 6219 5347     Australian Communications & Media Authority
> email: andrew.macint...@acma.gov.au            http://www.acma.gov.au/
>
> -----Original Message-----
> From: سليمان السهمي [mailto:sahmi.soulaim...@gmail.com]
> Sent: Saturday, 18 October 2014 9:49 AM
> To: comtypes-users@lists.sourceforge.net
> Subject: [comtypes-users] Skip optional argumments?
>
> Optional arguments are very widely used in the COM world.
> How do you skip optional arguments with comtypes?
> In VB you would something like:
>     Object.Method(arg1,,,arg4)
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> comtypes-users mailing list
> comtypes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/comtypes-users
>
> NOTICE: This email message is for the sole use of the intended recipient(s)
>  and may contain confidential and privileged information. Any unauthorized
>  review, use, disclosure or distribution is prohibited. If you are not the
>  intended recipient, please contact the sender by reply email and destroy
> all
>  copies of the original message.
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> comtypes-users mailing list
> comtypes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/comtypes-users
>

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to