The information in this article applies to:
SUMMARY
In FoxPro 2.x, to create or modify a database under program control, you
can use the COPY TO <name> STRUCTURE EXTENDED, the CREATE <name1> FROM
<name2> command.
MORE INFORMATIONThe following code examples create a new database named TEMP that contains one field. The field is named LASTNAME and is 30 characters long. FoxPro 2.x NOTE: To add more than one field to the table, perform
another APPEND BLANK and then the REPLACE sequence again.
The COPY STRUCTURE EXTENDED command creates a new database file that describes the structure of the original database. Each record of the new database describes a field of the original database. NOTE: The COPY STRUCTURE EXTENDED and CREATE FROM commands also work in stand-alone applications created with the FoxPro Distribution Kit. Visual FoxPro
CREATE TABLE CommandYou can also use the CREATE TABLE command to modify or create a database. Its syntax is as follows:
The following example creates a table with the NAME, ADDR,
CITY, ZIP, and SALARY fields, plus a memo field called COMMENTS:
Additional query words: VFoxWin 3.00 FoxDos FoxWin 1.00 1.x 2.00 2.10 2.50 2.50a 2.50b 2.60 2.60a dbf
Keywords : kbcode FxtoolGeneral |
Last Reviewed: August 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |