Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object >

Clib.fsetpos() Method


This method sets the current file cursor to a specified position.

Syntax

Clib.fsetpos(filePointer, position)

Parameter
Description
filePointer
A file pointer as returned by Clib.fopen()
position
The value returned by Clib.fgetpos(filePointer, position)

Returns

0 if successful; otherwise, nonzero, in which case an error value is stored in errno.

Usage

This method sets the current file cursor to a specified position in the file indicated by filePointer. It is used to restore the file cursor to a position that has previously been retrieved by Clib.fgetpos() and stored in the position variable used by that method.

Example

For an example, read Clib.fgetpos() Method.

See Also

Clib.fgetpos() Method and Clib.ftell() Method


 Siebel eScript Language Reference 
 Published: 18 April 2003