EasyManua.ls Logo

Teklynx Discover ActiveX - Object Methods

Teklynx Discover ActiveX
165 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2 -- 44
Programmer’s Guide
"
""
" Documents.Add
VTS_DISPATCH or Document
Add(strDocumentName).
Adds a new Document
to the collection.
Return value: Returns a Document
object if succeeded.
Parameters:
strDocumentName Optional VT_BSTR or String.
Specifies the name of the new document to add.
If none, system automatically assigns one.
"
""
" Documents.CloseAll
VTS_NONE CloseAll ( boolSaveChanges ).
Closes all documents.
Parameters:
boolSaveChanges Optional VT_BOOL or Boolean
.Specifies
the save action for all documents. (default: True).
If boolSaveChanges is True and a document has not been
previously saved, the Saves As dialog box is automatically
prompted.
"
""
" Documents.Item
VTS_DISPATCH or Document
Item( varIndex ).
Returns a Document
of a collection, either by position or by
name.
Note
If the value provided as Index does not match any existing
member of the collection, no object is returned.
Parameters:
varIndex Required VT_VARIANT or Variant
.Thenameor
index number of a member of the collection.
The index can be a numeric expression (a number from 1 to the
value of the collection’s Count property), a constant, or a string.
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.Documents(1)
Object.Documents.Item(1)
Object
Methods

Table of Contents