• <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>

Path Adjuster Dialog

When editing a data entry or batch application, or while using CSCode, select Code -> Path Adjuster. A dialog is shown that facilitates working with absolute and relative paths in CSPro logic.
The dialog allows you to specify a path and see how it is expressed as a string literal, with proper escaping for the backslash characters. In the above example, the path "C:\AMO\Images\UVA.jpg" must be written using escaped backslashes when using logic version CSPro 8.0+: "C:\\AMO\\Images\\UVA.jpg". The Always use forward slashes option replaces backslashes in paths with forward slashes; e.g., "C:/AMO/Images/UVA.jpg".
If specifying a directory or file path in the Relative To field, the dialog will display the evaluated relative path. In the above example, relative paths would appear as following:
Relative To (Directory)Relative Path (CSPro Logic)
C:\AMO"Images\\UVA.jpg"
C:\AMO\Images"UVA.jpg"
C:\AMO\Reports"..\\Images\\UVA.jpg"
The ... button allows you to browse for a directory or file path. The Copy button copies the text, or CSPro logic, to the clipboard.
See also: String Literals, String Encoder Dialog, Path.getRelativePath Function