Silverfrost Logo About Us | Contact Us
 

Buffer positioning

INTEGER FUNCTION SCROLL_EDIT_BUFFER@(E,HPOS,VPOS)
INTEGER E(24) ! EDIT_INFO block
INTEGER HPOS
INTEGER VPOS

This function positions the buffer at a given point and returns 1 if successful and zero otherwise.

INTEGER FUNCTION ADVANCE_EDIT_BUFFER@(E,N)
INTEGER E(24)     ! EDIT_INFO block
INTEGER N         ! Count of characters to move

This routine moves the pointer through an edit buffer character by character. The carriage return/line feed character pair are treated as one. N can be set to a negative value in order to move backwards through the buffer. The number returned is the number of character positions moved. Thus unless the start or end of the buffer was encountered, the value of N will be returned unchanged.

 

 

Copyright © 1999-2017 Silverfrost Limited