pos()  posEnd()

Chapter 5: General Objects and Methods

posCurrent()

Description

Moves the file position indicator in a file associated with an I/O file object based on current position.

Syntax

posCurrent(long size);

Parameter

Description

size

Number of bytes to move. Use a positive value to move forward or a negative value to move backward.

Return value

Integer. Returns 1 for success, and 0 for failure.

Usage

Pointer to object

Object

long to_beg;to_beg = -527;piof->posCurrent(to_beg);

long to_end;to_end = 394;my_iofobj.posCurrent(to_end);





Copyright © 2005. Sybase Inc. All rights reserved. posEnd()

View this book as PDF