(header)

Class TScriptEnvironment

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TScriptEnvironment = class(TObject)

Description

————————————————————————

Hierarchy

Overview

Methods

Published procedure Alert(Text: string);
Published function Confirm(Text: string): boolean;
Published function CreateObject(ProgID: string): OleVariant;
Published procedure Write(Text: string);
Published procedure WriteLine(Text: string);

Properties

Published property zbar: OleVariant;
Published property FSO: OleVariant read GetFSO;
Published property ThisFile: OleVariant read GetFile;
Published property OtherFile: OleVariant read GetOtherFile;

Description

Methods

Published procedure Alert(Text: string);

Displays a dialog box containing the given message and an 'OK' button.

Parameters
Text
is the message to display.
Published function Confirm(Text: string): boolean;

Displays a dialog box containing the given message, and the buttons 'OK' and 'Cancel'.

Parameters
Text
is the message to display.
Returns

True if the user clicked OK, False otherwise.

Published function CreateObject(ProgID: string): OleVariant;

Creates and returns a reference to an Automation object.
Example: CreateObject("ADODB.Stream") returns a newly created Stream object.

Published procedure Write(Text: string);

Outputs the given text to the debug console.

See also
TScriptPublic.Output
Published procedure WriteLine(Text: string);

Outputs the given text to the debug console, followed by a line break.

See also
TScriptPublic.Output

Properties

Published property zbar: OleVariant;

Returns a ZBarCOM.Zaap object.

Published property FSO: OleVariant read GetFSO;

Returns a Scripting.FileSystemObject object.

Published property ThisFile: OleVariant read GetFile;

Returns a Scripting.File or a Scripting.Folder object representing the item that is currently selected in ZTreeWin.

Published property OtherFile: OleVariant read GetOtherFile;

Returns a Scripting.File or a Scripting.Folder object representing the item that is currently selected in the opposite pane of ZTreeWin, if in F8 split view mode. When not in split view mode, this property returns Null (Nothing in VBScript).

(footer)
Generated by PasDoc 0.11.0 on 2009-04-23 23:04:15