Test data with search class

Command group Flag affected Reversible Execute on client Platform(s)
Searches YES NO NO All

Syntax

Test data with search class

Description

This command tests the record in the CRB against the current search class. It sets the flag if the record passes the test or if there is no current search class. If the data does not fit the current search class, the flag is cleared.

Test data with search class uses the current search as the condition of the test which has been set using Set search name or Set search as calculation.

Example

Calculate lCode as  'RT'
Set search as calculation {len(lCode)>2}
Test data with search class
If flag false
  OK message {Test failed, [lCode] invalid}
End If