Line_Count - DfBaseRichEdit
Returns number of lines in control
Type: Property
Access: Read-Only
Data Type: Integer
Parameters: None
Syntax
Property Integer Line_Count
| Access Type | Syntax |
|---|---|
| Read Access: | Get Line_Count to IntegerVariable |
Description
Line_Count returns the number of lines of text displayed in control.
This method has no effect if control is not paged (returns zero).
Sample
This sample gets the number of lines displayed in control oRichEdit1 and displays it to the user in a message box.
Procedure DisplayCurrentLineCount
integer iNumberOfLines
// get the length of the current line
get Line_Count of oRichEdit1 to iNumberOfLines
send Info_Box (string(iNumberOfLines)) "Number of lines"
End_Procedure // DisplayCurrentLineCount