The information in this article applies to:
SYMPTOMSWhen using the File Control and reading from a file using either the LineInputString or InputFields methods, the EOF property is always False, even when it has reached the end of the file. One of the following error messages will be generated: -or-
CAUSEThe file EOF property is not set to True when the file pointer reaches the end of the file. RESOLUTIONThere are two options for resolving this issue in the Windows CE Toolkit for Visual Basic 5.0: Option1Obtain the Windows CE ActiveX Control Pack available from the Microsoft Web site located at:http://www.microsoft.com/windowsce/downloads/pccompanions/actxconpak1.asp Option 2Instead of checking the EOF property of the File control, use the LOC property and compare it against the LOF property. For example:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article. MORE INFORMATIONSteps to Reproduce BehaviorNOTE: This example uses the LineInputString method. The error also occurs using the InputFields method.
REFERENCESBooks Online for Microsoft Windows CE Toolkit for Visual Basic 5.0 Additional query words: wce vbce vbce5 vbce6
Keywords : kbToolkit kbVBp kbVBp500bug kbVBp600fix kbWinCE kbWinCE100 kbGrpVB |
Last Reviewed: July 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |