Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel VB Language Reference > VB Language Reference > Loc FunctionThis standard VB function returns the current offset within an open file. SyntaxReturnsFor random files, the number of the last record read or written; for files opened in append, input, or output mode, the current byte offset divided by 128; for files opened in binary mode, the offset of the last byte read or written. ExampleThis example creates a file of account numbers as entered by the user. When the user finishes, the example displays the offset in the file of the last entry made. Sub Button_Click See Also |
![]() |
![]() ![]() |
Siebel VB Language Reference |