<CONTROL>.TEXTREPLACE()
Syntax
<CONTROL>.TEXTREPLACE( Start_Position as N, Length as N, New_Text as C [, Processed as L ] )
|
Argument |
Description |
|
Start_Position |
The beginning character to select. The first character is number 1. |
|
Length |
Optional. Default = 0. The number of characters to select. Enter -1 to select all characters. |
|
New_Text |
The text to substitute for the selection. |
Description
The <CONTROL>.TEXTREPLACE() method places text into a text control.
Limitations
Desktop applications only.
Example
|
dim ptr as P dim fld as P ptr = form.load("Customer Information") ptr.show() fld = ptr.Child("Lastname") ' assume the field contains "lastname" fld.TextReplace(5, 0, "insert") -> "lastinsertname" fld.textreplace(5, 6, "") -> "lastname" |
See Also
Form Functions and Methods, Browse Functions and Methods, Form Control Methods
Supported By
Alpha Five Version 5 and Above