Clear search class

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

Syntax

Clear search class

Description

This command clears the current search class so you can print a report using all records. This also frees the memory required by the search class.

If you use Clear search class in a reversible block, the search class reverts to its former setting when the method terminates.

Example

Set report name rMyReport
Set search name sMySearch
# sys(81) returns the current search class
Yes/No message Use Search (Icon) {Do you wish to use the search class '[sys(81)]' ?}
If flag false
  Clear search class
End If
Print report (Use search)