Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

AADBCREATE( cNewDbf, pFldSpecs )

Purpose

Create a new .DBF from a structure specification, or, if the file
exists, modify its structure to conform to a structure specification.

Arguments

     cNewDbf -- Name of .DBF to create or modify.

     pFldSpecs -- (1) An array of subarrays, one for each
                          field in cNewDbf. Each element must
                          be a subarray containing field_name,
                          field_type, field_len and
                          field_dec.
                   Or:

                      (2) The name of a .DBF whose structure is to
                          be used to make cNewDbf.

Setup

None.

Example

     * Make a new dictionary skeleton
     * from an existing dictionary:
     AADBCREATE( "new_dict", aai_dict" )

Returns

.T. or .F.

Side Effects

If cNewDbf does not exist, it is created. If it exists, its
structure is compared to pFldSpecs. If it differs, it is given
the structure of pFldSpecs, and the old data, if any, is copied
back into it.

Artful Calls

DBF_NAME, DB_OPEN, DELFILES, IS_OPEN, ROOTNAME

Source File

AA_DBCR8.PRG

See Also: MODI_STRU()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson