Skip to content

Value - DfBaseEdit

The text value of an edit control "line"

Type: Property
Access: Read/Write
Data Type: String
Parameters: None

Parameters

Parameter Type Description
iItem Integer

Syntax

Property String Value
Access Type Syntax
Read Access: Get Value to StringVariable
Write Access: Set Value to StringVariable/Value

Description

Value retrieves (get) and replaces (set) a line of text in an edit object. Defintion 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. Getting the value returns the text. Setting the value replaces the current line with passed text.

When an edit object is not active, a line of text corresponds to a paragraph (all characters up to the end of line marker). Getting the value returns the entire paragraph. Setting the value replaces the paragraph number with the new value.

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

Line_Count