(header)

# Class TScriptEnvironment

Description | Hierarchy | Fields | Methods | Properties

## Unit

U_Script

## Declaration

`type TScriptEnvironment = class(TObject)`

## Description

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

## Hierarchy

- TObject
- TScriptEnvironment

## Overview

### Methods

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

### Properties

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

## Description

### Methods

| `procedure Alert(Text: string);`
Displays a dialog box containing the given message and an 'OK' button. ###### Parameters Text is the message to display.

| `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.

| `function CreateObject(ProgID: string): OleVariant;`
Creates and returns a reference to an Automation object. Example: ``CreateObject`("ADODB.Stream")` returns a newly created Stream object.

| `procedure Write(Text: string);`
Outputs the given text to the debug console. ###### See also TScriptPublic.Output

| `procedure WriteLine(Text: string);`
Outputs the given text to the debug console, followed by a line break. ###### See also TScriptPublic.Output

### Properties

| `property zbar: OleVariant;`
Returns a ZBarCOM.Zaap object.

| `property FSO: OleVariant read GetFSO;`
Returns a Scripting.FileSystemObject object.

| `property ThisFile: OleVariant read GetFile;`
Returns a Scripting.File or a Scripting.Folder object representing the item that is currently selected in ZTreeWin.

| `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