How to Obtain a List of Open .DBF Files ProgrammaticallyID: Q107361 The information in this article applies to:
SUMMARYUsing the program below, you can obtain a list of the open database files in a program for use in a list box, backup routine, or other procedure.
MORE INFORMATIONThe following program dimensions an array with the maximum number of open work areas for the version of FoxPro currently running. The maximum number of work areas is 25 for FoxPro 2.0 and the Standard (16-bit) version of FoxPro 2.5 for MS-DOS. For all other versions of FoxPro later than 2.0, the maximum number of work areas is 225. Each work area is selected and tested for an open file using the DBF() function. If the DBF() function returns a name, the filename is placed in an array that can be used in other procedures. The array will contain two columns. The first column will contain the .DBF file name and the second will contain the work area in which the .DBF was opened.
Additional reference words: FoxMac FoxDos FoxWin 2.00 2.50 2.50a 2.50b
2.50c 2.60
2.60a
work area
KBCategory: kbenv kbprg kbcode
KBSubcategory: FxenvMemory
|
|
Last Reviewed: June 27, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |