BBjTriggerData::getTriggerType

Description

In BBj 6.0 and higher, this method returns the type of trigger currently being executed.

Syntax

Return Value

Method

string

getTriggerType()

Parameters

None.

Return Value

The type of trigger currently being executed.

Remarks

The type string returned will be one of the following values:

- before-read, after-read, insteadof-read

- before-write, after-write, insteadof-write

- before-remove, after-remove, insteadof-remove

- before-open, after-open

- before-close, after-close

 

Example

REM Get the type of trigger being fired.
td! = BBjAPI().getFileSystem().getTriggerData()

REM Get the trigger type
type$ = td!.getTriggerType()

See Also

BBjAPI

BBjTriggerData

ObjectVariables

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.