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

ID: Q152277

1.00 WINDOWS kbprg kbinterop kbdocerr

The information in this article applies to:

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
Keywords          : FxinteropOdbc 
Version           : 1.00
Platform          : WINDOWS

Last Reviewed: July 12, 1996