DataBasic Reference > Programming in DataBasic > Embedded Basic Subroutines > How to Associate a Trigger with a File

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

How to Associate a Trigger with a File (DataBasic) (m618705+associatetrigger.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

How to Associate a Trigger with a File

Once you have written your trigger subroutine, you must associate it with the appropriate Reality file using the CREATE-TRIGGERcommand. You must specify the file, the trigger subroutine and the type of trigger required (PRE-WRITE, POST-WRITE, PRE-DELETE or POST-DELETE). A trigger can be associated with a file data section or a file dictionary. Note that the trigger subroutine must be cataloged in the master dictionary of the account containing the file.

The DELETE-TRIGGERcommand allows you to remove trigger associations. In this case you need only specify the file name and the trigger type.

LIST-TRIGGERSlists the triggers associated with a file.

Notes:

See Also

Embedded Basic Subroutines
How to Write an Embedded Basic Subroutine
Embedded Basic Examples
Debugging Embedded Basic Subroutines
Triggers Dos and Don'ts

RealityV15.0Comment on this topic