Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Eof FunctionThis standard VB function is used to determine whether the end of an open file has been reached. SyntaxReturnsThe value -1 if the end of the specified open file has been reached, 0 otherwise. UsageFor more information about assigning numbers to files when they are opened, read Open Statement. ExampleThis example uses the Eof function to read records from a Random file, using a Get statement. The Eof function keeps the Get statement from attempting to read beyond the end of the file. The subprogram, (general) (declarations) Sub CreateFile Sub Button_Click See AlsoGet Statement |
Siebel VB Language Reference |