Quit Method; Data Type - Teklynx Discover ActiveX Programmer's Manual

Table of Contents

Advertisement

Chapter 1 -- 8

Quit method

Data Type

Application
Object
The Quit method is used to end the process. Before using this
method, you must close all the documents.
The following example shows how to deactivate the server. Use
the CloseAll method on the Documents collection to close all
the documents. Then, use the Quit method on the Application
object to end the process. At the end, the Set instruction delete
the Application from the system memory.
MyApp.Documents.CloseAll False
MyApp.Quit
Set MyApp = Nothing
There are three data types corresponding to the three main
objects: Application, Document and Collection.
The Application object represents the labeling software. The
Application object contains the properties and the methods that
return the first level objects. For example, the ActiveDocument
property returns a Document object.
" " " " Using the Application object
To return the Application object, use the Application property.
The following sample shows how to display the path defined for
the labeling software.
Dim MyApp As LabelManager2.Application
Set MyApp = New LabelManager2.Application
MsgBox MyApp.Path
Most of the properties and methods that return the common user
interface objects, such as the active document (ActiveDocu-
ment property), can be used without the identifier of the
Application object by using the With keyword.
Programmer's Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents