Creating the Validate Currency Field rule

You create the Validate Currency Field rule in Datacap Studio.

Procedure

To create the Validate Currency Field rule:

  1. Open Datacap Studio and click the Rulemanager tab.
  2. In the Rulesets pane, select the Validate ruleset and click Lock/Unlock ruleset (padlock) to lock the ruleset for editing.
  3. Right-click the Validate ruleset and choose Add Rule.
  4. Rename the new rule from Rule1 to Validate Currency Field.
  5. Rename the default function from Function1 to Validation: Currency.
  6. Click the Actions library tab.
  7. Expand the Validations library and select the DeleteAllAlpha action.
  8. Make sure the Validation: Currency function is selected in the Rulesets pane.
  9. Click Add to function at the left side of the Actions library pane.
  10. On the Actions library tab, select the DeleteSelectedChars action and click Add to Function.
  11. On the Actions library tab, select the IsFieldCurrency action and click Add to Function.
  12. Select the DeleteSelectedChars action and set the strParam parameter to ' ' (a single space) in the Properties pane.
  13. In the Rulesets pane, click Save.