Skip to content

paValue - DfBaseRichEdit

Sets content of control from memory address or places RTF stream in control into memory address

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

Syntax

Property Address paValue
Access Type Syntax
Read Access: Get paValue to AddressVariable
Write Access: Set paValue to AddressVariable/Value

Description

Sets content of a control from memory address or places RTF stream in control into memory address.

When placing the content of the control into a memory address, the full RTF stream of the control is placed into that memory address (rather than just the text).

Sample

This sample sets the contents of control oRichEdit1 to the text contained in string variable sText.

Procedure GetControlContents
    address aMyAddress
    string sText

    // this could be the contents of an RTF document
    move "Some RTF text" to sText

    GetAddress of sText to aMyAddress
    set paValue of oRichEdit1 to aMyAddress
End_Procedure

Sample

This sample moves the contents of control oRichEdit1 into the memory address in address variable aMyAddress.

Procedure SetControlContents
    address aMyAddress
    string sText

    get paValue of oRichEdit1 to aMyAddress
    move aMyAddress to sText
End_Procedure