MAINSAIL Language Manual, Section 46.13

previous   next   top   contents   index   framed top   this page unframed


46.13. relPos

Figure 46–16. relPos
BOOLEAN
PROCEDURE   relPos      (POINTER(filef;
                         
INTEGER n;
                         
OPTIONAL BITS ctrlBits);

relPos provides relative positioning within a random file.

relPos(f,n,ctrlBits) is equivalent to setPos(f,getPos(f) + cvli(n),ctrlBits).

relPos is restricted to INTEGER ranges.

Example 46–17. Use of relPos
$cScan(f,' ',omit); # skip to next blank in file f
relPos(f,2);      # ignore blank and following character


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 46.13