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