Xbasic
OBJECT.SELECT_TEXT Function
Syntax
.Select_text(n start_position ,n length )
Arguments
- start_position
The position of the first character to select.
- length
The number of characters to select. If Length is -1, then the selection goes to the end of the field.
Description
Selects text in the current field.
The <OBJECT>.SELECT_TEXT() method applies to:
- Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
- Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)
The <OBJECT>.SELECT_TEXT() method selects text in the current field from Start_Position for Length characters. If Length is -1, then the selection goes to the end of the field.
Example
Select text in a field Lastname in current form.
Lastname.activate() topparent.select_text(1,9999999)
Limitations
Desktop applications only.
See Also