Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Close StatementThis standard VB statement closes a file, concluding input/output to that file. SyntaxClose [[#]filenumber [, [#]filenumber ... ]] ReturnsUsageFilenumber is the number assigned to the file in the Open statement and can be preceded by a pound sign (#). If this argument is omitted, every open file is closed. When a Close statement is executed, the association of a file with filenumber is ended, and the file can be reopened with the same or a different file number. When the Close statement is used, the final output buffer is written to the operating system buffer for that file. Close frees the buffer space associated with the closed file. Use the Reset statement so that the operating system flushes its buffers to disk. ExampleThis example opens a file for random access, gets the contents of one variable, and closes the file again. The subprogram, (general) (declarations) Sub CreateFile Sub Button1_Click See Also |
Siebel VB Language Reference |