• <GetStart>
  • CSPro User's Guide
    • The CSPro System
    • Data Dictionary Module
    • The CSPro Language
      • Introduction to CSPro Language
      • Data Requirements
      • CSPro Program Structure
      • Programming Standards
      • Code Folding
      • Debugging CSPro Applications
      • Declaration Section
      • Procedural Sections
        • Statements
        • Proc Statement
        • PreProc Statement
        • OnFocus Statement
        • OnOccChange Statement
        • KillFocus Statement
        • PostProc Statement
      • Logic
      • Language Elements
    • Data Entry Module
    • Batch Editing Applications
    • Tabulation Applications
    • Data Sources
    • CSPro Statements and Functions
    • Templated Reporting System
    • HTML and JavaScript Integration
    • Action Invoker
    • Appendix
  • <CSEntry>
  • <CSBatch>
  • <CSTab>
  • <DataViewer>
  • <TextView>
  • <TblView>
  • <CSFreq>
  • <CSDeploy>
  • <CSPack>
  • <CSDiff>
  • <CSConcat>
  • <Excel2CSPro>
  • <CSExport>
  • <CSIndex>
  • <CSReFmt>
  • <CSSort>
  • <ParadataConcat>
  • <ParadataViewer>
  • <CSCode>
  • <CSDocument>
  • <CSView>
  • <CSWeb>

PostProc Statement

Format
postproc
Description
The postproc statement declares that the statements following it are executed at the end of a run, case, level, record, form, roster, or field.
In data entry applications, statements in a postproc procedure are executed when you complete an object; that is, flow off of it. When you click off a field, manually skip from a field, or move backward, the postproc statements are not executed. If you want to execute the statements in these situations, code them in the killfocus procedure.
In batch edit applications, a postproc is used to execute logic at the end of a run, case, level, or record. For an item there is no difference between placing your logic in a preproc or postproc.
If you don't code a preproc or postproc in a PROC, all instructions are considered postproc statements by default.
Example
PROC MARITAL_STATUS

postproc

if MARITAL_STATUS <> 1 and AGE < 12 then
   
errmsg("People aged less than 12 cannot be married.");
   
reenter;
endif;
See also: Proc Statement, PreProc Statement, OnFocus Statement, OnOccChange Statement, KillFocus Statement, Order of Executing Data Entry Events, Order of Executing Batch Edit Events