BUG: "CancelOnEsc" Ignored by DBSetOpt() in FoxPro

Last reviewed: April 18, 1995
Article ID: Q112486
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, 2.5b
  • Microsoft FoxPro Connectivity Kit version 2.5

SYMPTOMS

When using the Connectivity Kit to do a query from a table on a SQL Server machine, disabling the ESC key with DBSetOpts() does not work. This same command works correctly in FoxPro for Windows.

CAUSE

The current FPSQL.PLB file does not support this option.

STATUS

Microsoft has confirmed this to be a problem in the FoxPro version 2.5 Connectivity Kit. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Load the SQL Server workstation software.

  2. Run the following program:

          **** CODE STARTS HERE *****
    

             SET LIBRARY TO SYS(2004)+"fpsql.plb"
             handle=DBConnect("REDDFOXX","sa","")
             IF handle>0
                ?DBSetOpt(handle,"Asynchronous",0)
                ?DBSetOpt(handle,"CancelOnEsc",0)
                WAIT WINDOW "CONNECTION SUCCESSFUL" NOWAIT
                ?DBExec(handle,"use Tutorial")
                ?DBTables(handle)
                BROWSE
                * Press ESCAPE after you clear the Browse window
                ?DBExec(handle,"Select * from CUSTOMER","mycursor")
                BROWSE
             ELSE
                WAIT WINDOW "Connection Failed"
             ENDIF
             RELEASE LIBRARY fpsql.plb
    
          **** END CODE *****
    
    
For additional information about loading the SQL Server workstation software, please see the following article(s) in the Microsoft Knowledge Base:

   ARTICLE-ID: Q112482
   TITLE     : How to Make an MS-DOS Level SQL Server Connection


Additional reference words: FoxDos 2.50 2.50a 2.50b SetOptions ck
buglist2.50
KBCategory: kbprg kbbuglist
KBSubcategory:


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: April 18, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.