User Tools

Site Tools


setlinerelative_move_n_lines_.htm
Navigation:  ABC Library Reference > ASCIIViewerClass > AsciiViewerClass Methods >====== SetLineRelative (move n lines) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

SetLineRelative( lines ), PROTECTED

blk2blue.jpg

SetLineRelative Positions the ASCIIViewerClass object to a relative line.
Lines An integer constant, variable, EQUATE or expresssion containing the number of lines to move from the current position. A positive value moves downward; a negative value moves upward.

The SetLineRelative method repositions the ASCIIViewerClass object lines lines from the current position.

Example:

MyViewerClass.TakeScrollOne PROCEDURE(UNSIGNED EventNo)

 CODE

 IF FIELD()=SELF.ListBox

   CASE EventNo

   OF EVENT:Scrollup

     SELF.SetLineRelative(-1)

   OF EVENT:ScrollDown

     SELF.SetLineRelative(1)

   END

 END

setlinerelative_move_n_lines_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1