| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ASCIIViewerClass > AsciiViewerClass Methods >====== SetLineRelative (move n lines) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[setline position to specific line .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[settranslator set run time translator asciiviewerclass .htm|{{btn_next_n.gif|Next page}}]] | | || **SetLineRelative( **//lines //**), PROTECTED** {{blk2blue.jpg|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**