Microsoft KB Archive/133003

= BUG: SQL SELECT Brings Up Dialog Twice Erroneously =

Article ID: 133003

Article Last Modified on 5/7/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition
 * Microsoft FoxPro 2.6a Standard Edition
 * Microsoft FoxPro 2.6a Professional Edition for Macintosh
 * Microsoft FoxPro 2.6a Standard Edition

-



This article was previously published under Q133003



SYMPTOMS
An SQL SELECT command, using LOCFILE or GETFILE to find the source table or using PUTFILE to specify the destination table, may bring up the dialog box for LOCFILE, GETFILE, or PUTFILE twice.



WORKAROUND
Store the return value of the LOCFILE, GETFILE, or PUTFILE function in a variable, and pass this variable to the SELECT command as a named expression (that is, in parentheses) as in this example: cFilename=LOCFILE('','DBF','Select a Table') SELECT * FROM (cFilename)

-or-

cFilename=PUTFILE('Table','','DBF') SELECT * FROM INTO TABLE (cFilename)



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Problem
Run the following command: SELECT * FROM customer INTO TABLE PUTFILE The Save As dialog appears twice. To make it work correctly, modify it to: cFilename=PUTFILE SELECT * FROM customer INTO TABLE (cFilename)

Additional query words: kbvfp300 kbvfp500 kbvfp600

Keywords: kbbug KB133003

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.