DOCERR: VFP ODBC Driver Help File Version() Example Incorrect

Last reviewed: July 11, 1996
Article ID: Q152277
The information in this article applies to:
  • Microsoft Visual FoxPro ODBC Driver, version 1.0

SUMMARY

The VERSION() function example is stated incorrectly in the VFPODBC.TXT in the Visual FoxPro ODBC driver readme file.

MORE INFORMATION

The VERSION function can be used inside a trigger to conditionally execute code that should be executed specifically when the trigger is executed from the Visual FoxPro ODBC driver. The VERSION() function with the Visual FoxPro ODBC driver 1.0 returns the string "Visual FoxPro ODBC Driver 01.00.0083" without the quotation marks.

The code example in the Visual FoxPro ODBC driver readme file should be modified to execute correctly.

The code example should be as follows:

   IF VERSION()$"Visual FoxPro ODBC Driver"
      * [Insert trigger code that is supported by the Visual FoxPro ODBC
        Driver]
   ELSE
      * [Insert trigger code supported by Visual FoxPro]
   ENDIF

instead of:

   IF "Visual FoxPro ODBC Driver"$VERSION()
      * [Insert trigger code that is supported by the Visual FoxPro ODBC
        Driver]
   ELSE
      * [Insert trigger code supported by Visual FoxPro]
   ENDIF


Additional reference words: 1.00 vfoxwin
KBCategory: kbprg kbinterop kbdocerr
KBSubcategory: FxinteropOdbc



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 11, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.