Report.LineLength
Returns the length of the specified line.
This property is read only.
| Syntax | Parameters | Return/assignment value |
|---|---|---|
ReadOnly Property Report.LineLength( _
Line As Integer) As Integer
|
Line [in]
Specifies the line number. Type: Integer |
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