Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

FileClose – PB Docs 2019 – PowerBuilder Library

FileClose – PB Docs 2019

FileClose

PowerScript function

Description

Closes the file associated with the specified file number. The file
number was assigned to the file with the FileOpen function.

Syntax

Argument

Description

file#

The integer assigned to the file you want to close. The
FileOpen function returns the file number when it opens the
file.

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. If file# is
null, FileClose returns null.

Usage

The file is saved in the encoding format in which it was
opened.

Examples

These statements open and then close the file EMPLOYEE.DAT. The
variable li_FileNum stores the number assigned to the file when FileOpen
opens the file. FileClose uses that number to close the file:

See also

FileLength

FileOpen

FileReadEx

FileWriteEx


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x