Scroll()

Syntax:

Scroll( Command, Amount )

Parameters:

Command – The Command should be one of the following strings: "LineUp", "LineDown", "LineTo", "ParagraphUp", "ParagraphDown", "ParagraphTo", "PageUp", "PageDown", "PageTo", "Start", "End". This parameter is required.

Amount - Amount can be an integer or a variable name containing an integer. For "LineUp" and "LineDown" the Amount is the number of lines to move by (the default is one). For "LineTo" the Amount is the Index position of the line in the Text object i.e. the first line is index position 0, line 2 is Index position 1, and so on; the default is 0. All other Command options ignore the Amount parameter. This parameter is optional.

Remarks:

Call this function to scroll the text within a Text object using one of the Command options. This function is normally called within a Button object’s Script Action or a Script Object.

image\Script_Button.jpgExamples