Please enable JavaScript to view this site.

ESL Documentation

Just as response to start is used in the ESL program to perform certain operations at program startup, response to start, when defined within a block, is used to perform specified operations immediately after the block becomes active; for example:

 

response to File

    begin FileBlock

        response to start

            make File yellow

            make FilePull visible

            change Prompt to

                font "large" text center

                "Select the filename"

        response to FileText

            ...

        response to FileOK

            ...

            leave block

        response to FileQuit

            ...

            leave block

    end FileBlock

 

Although the use of the response to start definition is recommended, the action statements or action routines in the response to start can be placed before the block is entered, with the same results; for example:

 

response to File

    make File yellow

    make FilePull visible

    change Prompt to

        ...

    read file ...

    begin FileBlock

        response to FileText

            ...

        response to FileOK

            ...

        response to FileQuit

            ...

    end FileBlock

 

Just as there can be only one response to start in the ESL program to respond to program startup, there can be only one response to start within each block.