The information in this article applies to:
SUMMARY
The information below explains how to convert dBASE files into FoxPro
files.
MORE INFORMATION
FoxPro version 2.6 has new tools, as well as new and enhanced commands and
functions, to maximize dBASE compatibility.
AutoMigrate automatically converts dBASE files when you:
Converting TablesdBASE tables that have memo fields and/or indexes are converted when you use them.Encrypted Tables: If your table is encrypted, you'll need to decrypt it in dBASE before conversion can take place. Indexes: FoxPro uses a different indexing algorithm than dBASE, so if the table being converted has an associated dBASE .MDX or .NDX index, FoxPro automatically creates a FoxPro .CDX or .IDX index for the table. To use a dBASE IV table with an index and without a memo field in dBASE after FoxPro has converted it, open the file in dBASE and reindex. This step is necessary only if you have changed any of the data. Tables with Memo Files: If a dBASE table has one or more memo fields, FoxPro automatically converts the memo file so that it is compatible with FoxPro. You can use a dBASE III table or a dBASE IV table with a memo field in dBASE after it has been converted into FoxPro. To use a dBASE table after it has been converted to a FoxPro format:
Converting Reports and LabelsWhen FoxPro converts reports and labels, FoxPro creates an .FRX file with the information from the dBASE .FRM file, and a .LBX file with the information from the dBASE .LBL file.What FoxPro Converts: FoxPro converts all bands, fields, calculated fields, hidden fields, picture templates, and functions for fields. FoxPro also converts style attributes such as underline, bold, italic, and colors. Fonts are not converted. Word-wrap bands are converted to a series of one-line text fields in FoxPro reports. Band spacing and pitch information is not converted. FoxPro does not use a global ruler or a word-wrap paragraph ruler, so this information is not retained. Converted reports will have a right margin equal to the width of the report. The left margin is not changed but can be set in the FoxPro Report Writer Reports with tab characters may need to have their fields rearranged to achieve the desired appearance. Differences After Conversion: Since empty report bands print in dBASE, FoxPro adds null characters to these bands so they will also print in FoxPro. dBASE reports do not store complete environment information, only database aliases. As a result, upon opening a converted report, you might get an error such as "Customer.dbf not found." FoxPro reports can save database names, relations, skips, and index information. Once in the Report Writer, set up the environment the way you want it and then save that information with that report. No more such errors will appear. Troubleshooting Hard-coded Reports: If the report is hard-coded, rather than created through the dBASE Report Design Tool, you'll want to keep in mind the following points:
Converting QueriesFoxPro allows you to work with three types of queries: SQL queries, Updatable queries (.FPQ), and, in the Professional Edition, Client-Server queries (.CSQ). When you modify a dBASE .QBE query in the Updatable Query Wizard, FoxPro creates an .FPQ file.If you add an aggregate function, such as SUM() or AVG() to a dBASE query or an .FPQ query, FoxPro creates an equivalent .QPR file, using SQL to handle the more complex query. Converting Programs and ApplicationsIn general, dBASE IV programs and applications run unchanged in FoxPro. When you choose to run a dBASE program, FoxPro recompiles the .PRG file into an .FXP file and runs the .FXP.Because of the differences in SQL implementation, dBASE IV .PRS programs cannot be run in FoxPro. RunTime Errors: If a dBASE program produces a runtime error or unexpected results, you can debug the program using the FoxPro debugging tools, Trace and Debug. The Trace window allows you to step through your code a line at a time. The Debug window has two panels. You can enter variables or FoxPro functions in the left panel. The right panel displays the runtime values assigned to the variables or returned by the functions. For more information about debugging in FoxPro, see the "Program Menu" chapter of the FoxPro "User's Guide" and the "Debugging Your Application" chapter of the FoxPro "Developer's Guide." Syntax Errors: If a syntax error occurs when you are running a program, FoxPro highlights the error line in an editing window. You can use the Help file to check the proper syntax and usage for the command or function that caused the error. Debugging Tips:
Additional query words: VFoxWin FoxDos FoxWin foxhelp.dbf foxhelp.hlp
Keywords : kb3rdparty FxinteropDbase |
Last Reviewed: August 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |