Chapter 2 -- 35
Reference Guide
"
""
" Dialogs.Item
VTS_DISPATCH or Dialog
Item( intIndex ).
Returns a member of a collection, by position.
Note
If the value provided as Index does not match any existing
member of the collection, no object is returned.
Parameters:
intIndex Required VT_I2 or Integer
or enumDialogType.The
index number of a member of the collection.
The index must be a numeric expression (a number from 1 to
the value of the collection’s Count property), or a constant.
Note
If the value provided as Index doesn’t match any existing
member of the collection, an error occurs.
The Item method is the default method for collections. There-
fore, the following two lines of code are equivalent.
Object.Dialogs(1)
Object.Dialogs.Item(1)
Thevaluecanbeoneofthefollowing:
lppxPrinterSelectDialog= 1
lppxOptionsDialog= 2
lppxFormDialog= 3
lppxPrinterSetupDialog= 4
lppxPageSetupDialog= 5
lppxDocumentPropertiesDialog= 6
Object
Methods