accessing WORD collections with OLE2 package

From: <wassens_at_my-deja.com>
Date: Tue, 10 Oct 2000 09:29:53 GMT
Message-ID: <8runid$mar$1_at_nnrp1.deja.com>


I'm trying to accces an object in a word collection; Wordapp.ACtiveDocument.VBProject.VBComponents.Item(1)

I tried the following:

ole2.add_arg (arglist, 1);
item := ole2.get_obj_property(VBComponentsobj, 'item',arglist); and
item := ole2.get_obj_property(VBComponentsobj, 'item(1)' ); and
item := ole2.get_obj_property(VBComponentsobj, 'item[1]' );

this doesn't work.

any suggestions ?

Frank.

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Tue Oct 10 2000 - 11:29:53 CEST

Original text of this message