Help > Web Development > Object Reference > Object Reference > ISYSResultList > Truncate Method
<a name="kanchor530"></a>ISYSResultList:Truncate Method
Truncates the result list to the specified size. Only the truncated portion of the result list will be persisted to disk.

Note: This method is provided for compatibility with ISYS 6. Applications should use the ISYSSearch object to handle searches, ISYSSearch.MaxRows can be used to handle truncation.

Syntax
[VBScript]
sub ISYSResultList.Truncate(_
  long Size_ 
)
[C#]
void IISYSResultList.Truncate(
  long Size
);
[ColdFusion/Java]
void IISYSResultList.Truncate(
  long Size
) throws ComException;
Parameters
SizeThe maximum size for the result list.

Examples
[VBScript]
<% set results = Application("ISYSIndex").PerformFind(Request("search"), 0) results.Sort SortRelevance results.Truncate 1000 %>
Remarks
Truncation should be performed after the result list has been sorted, if you truncate prior to sorting you risk loosing the document that is most relevant to your search.

After a truncation has occurred, any further action on the result list will occur on the truncated part, this includes PerformFind and PerformEnglishFind.

See Also