[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
CREATE
Create an empty structure extended (.dbf) file
------------------------------------------------------------------------------
Syntax
CREATE <xcExtendedDatabase>
Arguments
<xcExtendedDatabase> is the name of the empty structure extended
database file. This argument can be specified either as a literal
database file name or as a character expression enclosed in parentheses.
If no extension is specified, .dbf is the default extension.
Description
CREATE produces an empty structure extended database file with the
following structure:
Structure of an Extended File
------------------------------------------------------------------------
Field Name Type Length Decimals
------------------------------------------------------------------------
1 Field_name Character 10
2 Field_type Character 1
3 Field_len Numeric 3 0
4 Field_dec Numeric 4 0
------------------------------------------------------------------------
Like COPY STRUCTURE EXTENDED, CREATE can be used in conjunction with
CREATE FROM to form a new database file. Unlike COPY STRUCTURE
EXTENDED, CREATE produces an empty database file and does not require
the presence of another database file to create it.
<xcExtendedDatabase> is automatically opened in the current work area
after it is created.
Examples
. This example creates a new structure extended file, places the
definition of one field into it, and then CREATEs a new database file
FROM the extended structure:
CREATE TempStru
APPEND BLANK
REPLACE Field_name WITH "Name",;
Field_type WITH "C",;
Field_len WITH 25,;
Field_dec WITH 0
CLOSE
CREATE NewFile FROM TempStru
Files Library is CLIPPER.LIB.
See Also:
COPY STRU EXTE
CREATE FROM
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson