piMaxChars - DfBaseRichEdit
Sets or returns maximum number of characters
Type: Property
Access: Read/Write
Data Type: integer
Parameters: None
Syntax
Property integer piMaxChars
| Access Type | Syntax |
|---|---|
| Read Access: | Get piMaxChars to integerVariable |
| Write Access: | Set piMaxChars to integerVariable/Value |
Description
The default maximum number of characters for the control is 64 KB (65536 bytes or characters).
| Col 1 | Col 2 |
|---|---|
| Note: | piMaxChars determines the maximum number of visible characters the user can enter into the control. However, when getting the value or saving the value to a database field, the value will contain additional non-visible characters. Each time the user presses Enter or Shift+Enter to break the line, this will be counted as a single visible character, but the value will contain 2 characters, a linefeed character (ASCII 10) followed by a carriage return character (ASCII 13). |
OnMaxText fires when the maximum text size the control can contain is exceeded.
Sample
This sample retrieves the maximum number of characters of control oRichEdit1 to iMaxChars.
integer iMaxChars
get piMaxChars of oRichEdit1 to iMaxChars
Sample
This sample sets the maximum number of characters of control oRichEdit1 to 128 KB.
set piMaxChars of oRichEdit1 to (128 * 1024)