• <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
      • Logic
        • View Logic
        • Create and Edit Logic
        • Find and Replace Logic
        • Compile Logic / An Application
        • OnKey Character Map
        • OnViewQuestionnaire Global Function
        • User and Configuration Settings
        • String Encoder Dialog
        • Path Adjuster Dialog
        • Symbol Analysis
      • 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>

View Logic

To switch to the logic view within a data entry or batch application you can either:
  • press the icon, or
  • from the View menu select "Logic", or
  • press Ctrl+L
To return to the forms view, you can either:
  • press the icon, or
  • from the View menu select "Form", or
  • press Ctrl+M
From the Logic Window you can create or modify procedures that add logic to your application. The view is divided into two areas:
Upper view: This is the text editor, where you write the logic statements.
Bottom view: Contains two tabs, Compiler Output and Message. The Compiler Output tab displays compiler results of your program. If there are errors in your logic, the compiler will display the error messages here; otherwise, it will display "Compile Successful". The Message tab is where you create user-defined messages to be displayed during, or at the completion of, the execution of your application.
Click on any element of the Forms Tree or Batch Edit Tree to see the logic which corresponds to that symbol. For example, if you click on a field, you see the logic for only that field. A group or level can also have logic associated with it. Click on the forms file node (usually the topmost node on form tree) to see the logic for the whole application. This is the way to see and enter logic for the global procedures.
See also: Create and Edit Logic, Order of Executing Data Entry Events, Order of Executing Batch Edit Events