Previous Topic: OCX Click EventNext Topic: Procedure Action Diagram for Date Services


External Action Blocks

You may need to use logic that was not defined using CA Gen. You can do this by using an external action block.

Use an external action block to do the following tasks:

An external action block has only three components:

An external action block contains no action statements of its own.

The designation external on the action block definition indicates that a non-CA Gen-generated program will be used to obtain the data for the action block's export view. This type of action block can be the object of a USE statement in normal Procedure Action Diagrams or Blocks.

During construction, CA Gen ensures that the program referenced by the external action block is properly referenced by CA Gen-generated programs.

The next sample code illustrates a CA Gen-defined Procedure Action Diagram that references an external date manipulation routine called Date Services.