From: Masaki Suketa on
Sorry for beeing too late to reply.

On Tue, Jan 26, 2010 at 08:33:18PM +0900, Tallak Tveide wrote:
> Masaki Suketa wrote:
> > Ooops,
> >
> > On Sat, Jan 23, 2010 at 07:15:21AM +0900, Masaki Suketa wrote:
> >>
> >> How about using WIN32OLE_VARIANT?
> >>
> >> items = WIN32OLE_VARIANT(null, WIN32OLE::VARIANT::VT_NULL)
> >> errors = WIN32OLE_VARIANT(null, WIN32OLE::VARIANT::VT_NULL)
> >
> > items = WIN32OLE_VARIANT.new(nil, WIN32OLE::VARIANT::VT_NULL)
> > errors = WIN32OLE_VARIANT.new(nil, WIN32OLE::VARIANT::VT_NULL)
> >
> > Regards,
> > Masaki Suketa
>
> Sorry - no help. The code now looks like this (without olegen):
>
> items = WIN32OLE_VARIANT.new(nil, WIN32OLE::VARIANT::VT_NULL)
> errors = WIN32OLE_VARIANT.new(nil, WIN32OLE::VARIANT::VT_NULL)
> group.OPCItems.AddItems 1, ['', 'Random.Int1'], [0, 1], items, errors

How about VT_EMPTY instead of VT_NULL?
items = WIN32OLE_VARIANT.new(nil, WIN32OLE::VARIANT::VT_EMPTY)
errors = WIN32OLE_VARIANT.new(nil, WIN32OLE::VARIANT::VT_EMPTY)
group.OPCItems.AddItems 1, ['', 'Random.Int1'], [0, 1], items, errors

Regards,
Masaki Suketa

From: tallakt on
> How about VT_EMPTY instead of VT_NULL?

This yields the same results as the example above.

Thanks again for your help ;-)

Tallak