SearchClear method: Record class
Syntax
SearchClear()
Description
The SearchClear method clears the field values for all search keys for a record.
Parameters
None.
Returns
None.
Example
Local Record &REC;
&REC = GetRecord();
&REC.SearchClear();
Considerations Using SearchClear and SearchDefault
The field property SearchDefault sets a field to its default value (if there is one) immediately after SearchInit PeopleCode finishes. SearchDefault overrides SearchClear. If you call SearchClear for a record, then use SearchDefault for a field, the field is set to its default value and the search key values for the rest of the record are cleared.