GetSelection()

Syntax:

textObject.GetSelection()

Return:

This Return Value is a new object with two properties: start and end.

startstart is an integer showing the Index position of the first character of the selection. The first character of a string is Index position 0, the second character is Index position 1, and so on i.e. the first character displayed in a text box has an Index position of 0.

end - end is an integer showing the Index position of the last character of the selection.

Remarks:

This function returns the Index position of the first and last characters currently selected in a Text object. No parameters are required. This function is normally used in conjunction with the SetSelection function.

image\Script_Button.jpgExamples