Help > Web Development > Object Reference > Object Reference > ISYSDocument > GetLineWithHitAfter Method
<a name="kanchor317"></a>ISYSDocument:GetLineWithHitAfter Method
Returns the number of the line with the next hit after the specified line.

Syntax
[VBScript]
function ISYSDocument.GetLineWithHitAfter(_
  long Line_ 
) as long
[C#]
long IISYSDocument.GetLineWithHitAfter(
  long Line
);
[ColdFusion/Java]
long IISYSDocument.GetLineWithHitAfter(
  long Line
) throws ComException;
Parameters
LineThe line number after which to find the next hit

Examples
[VBScript]
<% ' Execute the search object and get the results Set Results = ISYSSearch.Execute ' Get the first document Set Document = Results(1) ' Display 3 lines after the first hit firsthit = Document.GetLineWithHitAfter(0) For i = firsthit to firsthit + 1 if i > Document.LineCount then exit for Response.Write Document.Line(i, isysStylePlain) Next %>
See Also