SetDynamicParm  SetFirstVisible

Chapter 10: PowerScript Functions

SetEndOfFile

Description

Sets the current position in a file as the last position in the file.

Applies to

FileDirect objects

Syntax

instancename.SetEndOfFile ( )

Argument

Description

instancename

Instance name of the FileDirect object

Returns

Integer. Returns 1 for success and a negative number for an error.

Usage

Use the SetEndOfFile function to reset the current file position as the last position in the file.

Examples

Example 1

The following script moves the file pointer 100 bytes from the file end before the Read function is called:

li_ret = nvo_FileDirect.setendoffile ( )

See also





Copyright © 2004. Sybase Inc. All rights reserved. SetFirstVisible

View this book as PDF