Report.CharacterPositionToLineNumber

Returns the line number of the specified character index in the report.

Syntax Parameters Return value
Function Report.CharacterPositionToLineNumber( _
    Position As Integer) As Integer
Position [in]

Specifies the position character of the report for this function to search for.

Type: Integer

Integer

SVB Example

Finding the line number from a character position:

Option Base 1
Option Explicit
Sub Main
    'see which line the hundredth character is on
    MsgBox Str(ActiveReport.CharacterPositionToLineNumber(100))
End Sub