Epi Info™ User Guide

Command Reference


Check Commands: After and End-After

Description
This command divides Check Commands to be executed after data entry when the cursor or insertion point leaves the field.  All commands within After and End-After are executed when the cursor or insertion point leaves leaves the field.  This is generally after entering data to the field, page, or form.

Syntax

After
    <command(s)>
End-After
  • After / End-After command block is only used in Check Code. It applies only to fields that can receive the cursor or insertion point.  Therefore, Command buttons, Mirror fields, and fields that are read-0nly will not execute commands with the After block.

Comments
This command enables actions to occur after accessing a form, page, or field.  The default time to execute commands associated with a field is after data entry.

Example
The following commands represent the Check Code for a field called Demo1.

Field Demo1
    After 	
        DIALOG "This dialog command runs when the cursor leaves the Demo1 field--after data entry." 
    End-After
End-Field
Page last reviewed: September 16, 2022, 12:00 pm