Skip to content

Line_Count - DfBaseEdit

Returns number of "lines" in Edit object

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 in an edit object. Definition of a line differs based on whether the edit object is active (in the focus tree) or not.

When an edit object is active, a line of text corresponds to the line that you see in the visual text window. Line_count represents the number of lines in the window.

When an edit object is not active, a line of text corresponds to a paragraph (all characters up to the end of line marker). Line_count represents the number of paragraphs.

Procedure ShowAllText
    string sText
    integer i iLines
    get line_count of oCustomer_Comments to iLines
    for i from 0 to (iLines-1)
        get Value of oCustomer_Comments i to sText
        showln i ':' sText
    loop
End_procedure

See Also

value