Value - DFBaseTextEdit
Sets or returns content of control
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
Sets or gets the entire contents of the control. You can also use paValue to get and set the contents of control from or to a memory address.
Use AppendText to append text to the end of the text in the control. CharCount returns length of the text in the control.
A linefeed (LF) character can be added to text programmatically by adding ASCII character 10 to a string using the character function. A carriage return (CR) character can be added to text programmatically by adding ASCII character 13 to a string using the character function. Either a LF or CR character will break the current line in the control.
Sample
This sample sets the contents of the oTextEdit1 control to "This is line 1", then a line break, then "This is line 2".
Procedure DisplayText
string sText sLineFeed
move (character(10)) to sLineFeed
move ("This is line 1" + sLineFeed + "This is line 2") to sText
set Value of oTextEdit1 to sText
End_Procedure // DisplayText