<CONTROL>.TEXTSELECT()

Syntax

<CONTROL>.TEXTSELECT( Start_Position as N [, Length as N [, 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.

Description

The <CONTROL>.TEXTSELECT() method selects text in a control starting at Start_Position and running for Length characters.

Limitations

Desktop applications only.

Example

dim ptr as P

dim fld as P

ptr = form.load("Customer Information")

ptr.show()

fld = ptr.Child("Lastname")

fld.TextSelect(1,-1) ' selects all text

fld.TextSelect(3, 2) ' selects characters 3 and 4

See Also

Form Functions and Methods, Browse Functions and Methods, Form Control Methods

Supported By

Alpha Five Version 5 and Above