CRT Icon  Application Object


 

Description

Top-level object. Provides access to all of CRT's properties and methods.

 

Syntax

crt.property [ = expression ]

crt.Method([arglist])

 

Remarks

The name æcrtÆ is used to access all of CRT's top-level properties and methods. Some of these top-level properties return references to other objects. When a script is run by CRT it is not necessary to create the æcrtÆ object. It is automatically part of the script namespace.

 

Application Object Properties and Methods

Properties

Methods

ááááActivePrinter

ááááQuit

ááááDialog

 

ááááScreen

 

ááááSession

 

ááááVersion

 

ááááWindow

 

 

Properties

 

ActivePrinter

Description

Returns or sets the name of the active printer.

Syntax

crt.ActivePrinter [ = printerName ]

Remarks

Read/Write string property.

Example:

If crt.ActivePrinter <> "\\SERVER\InkJet2" Then

crt.ActivePrinter = "\\SERVER\InkJet2"

MsgBox "Updated Printer"

End If

 

Dialog

Description

Returns a reference to CRT's Dialog object.

Syntax

Set object = crt.Dialog

Remarks

See the Dialog object documentation for a description of its properties and methods.

 

Screen

Description

Returns a reference to CRT's Screen object.

Syntax

Set object = crt.Screen

Remarks

Object variables assigned from the screen property require the æSetÆ syntax. See the Screen object documentation for a description of its properties and methods.

 

Session

Description

Returns a reference to CRT's Session object.

Syntax

Set object = crt.Session

Remarks

See the Session object documentation for a description of its properties and methods.

 

Version

Description

Returns a string containing CRT's version.

Syntax

crt.Version

Remarks

Read-only string property

 

Example:

MsgBox "The version of CRT is: " & crt.Version

 

Window

Description

Returns a reference to CRT's Window object.

Syntax

Set object = crt.Window

Remarks

See the Window object documentation for a description of its properties and methods.

 

 

Methods

Quit

Description

Causes CRT to exit.

Syntax

crt.Quit

Remarks

A script that invokes Quit will be terminated immediately and cause CRT to exit.