To view and modify logic settings, select
Application Properties from the
Options menu of a data entry, batch edit, or tabulation application, and then select the
Logic Settings section. These settings are also available from
tools that use logic.
Logic settings are saved to the application file (
.ent,
.bch,
.xtb), or to the tool specification files (
.exf,
.fqf).
Symbol names: If checked, the compiler will enforce case sensitivity when processing:
- Symbol names such as dictionary and form names, logic variables, etc.
- Special callback functions such as OnKey.
Although CSPro logic is case-insensitive, many other programming languages are case-sensitive, meaning that "AGE" is different from "age". Having CSPro enforce case sensitivity may help you write better (and more careful) code. CSPro dictionary and form variables are added to logic as uppercase names.
Note that even with this checked, variable names must be unique on a case-insensitive basis, so if a variable with the name "AGE" is declared, it is not possible to declare another variable with the name "age".
- Original (the only version up to CSPro 7.7)
- CSPro 8.0+
For new applications, using the latest logic version is recommended. A comprehensive description of differences in the versions is available here:
Logic Version.
From CSPro logic, automatically convert results that are string, boolean, and undefined to CSPro formats: When called from CSPro logic, Action Invoker results are returned as a string containing
JSON. If checked, CSPro will convert this JSON string into a string more easily handled by CSPro. More details are available at
Action Invoker Execution from CSPro Logic.
- Always allow (without access token)
- Allow user to approve when no access token provided (the default setting)
- Always require an access token
Registered access tokens: You can specify valid access tokens to associate with your application by specifying each access token, one per line. You can also register access tokens in logic using
registerAccessToken.
By clicking Set as Default, the logic settings shown will become the default logic settings for new applications, as well as for tools that use logic. It is recommended that you decide what settings fit your needs and then use these settings for all new applications. If no default settings have been set, new applications are created using:
- Case Sensitivity: No
- Logic Version: Original
- Action Invoker: Convert results for CSPro logic; allow users to approve when no access token is provided