Built-in functions / Built-in functions |
Selects the text in the current field.
FGL_DIALOG_SETSELECTION( cursor INTEGER, end INTEGER )
A call to FGL_DIALOG_SETSELECTION(cursor, end) sets the text selection in the current form field. The cursor parameter defines the character position of the edit cursor (equivalent to FGL_DIALOG_GETCURSOR() position), while end defines the character position of the end of the text selection (equivalent to FGL_DIALOG_GETSELECTIONEND() position).
cursor can be lower, greater or equal to end.
This function has only an effect when staying in the current field, it should not be called in an AFTER FIELD or AFTER ROW for example.