Report.LineCount
Returns the number of lines in the report.
This property is read only.
| Syntax | Parameters | Return/assignment value |
|---|---|---|
| - | - | Integer |
SVB Example
Getting a character count of each line in a report:
Option Base 1
Option Explicit
Sub Main
Dim rpt As Report
Set rpt = ActiveReport
'iterate through each line and display how many
'characters it contains
Dim i As Integer
For i = 1 To rpt.LineCount
MsgBox "Line " & Str(i) & " contains " _
& rpt.LineLength(i) & " characters"
Next i
End Sub