Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>copy structure extended</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
COPY STRUCTURE EXTENDED


Syntax:     COPY STRUCTURE EXTENDED TO <file>/(<expC>)

Purpose:    To create a database file whose contents are the field
            definitions of the current database file.

Arguments:  <file> is the name of the structure extended database
            file.

Usage:      COPY STRUCTURE EXTENDED creates a database file with four
            fields:  Field_name, Field_type, Field_len, and Field_dec.
            The structure extended file contains the structure of the
            current database file with a record for the definition of
            each field.

            Used in application programs, this permits you to create or
            modify the structure of a database file programmatically.
            To create a new database file from the structure extended
            file, use CREATE FROM.  If you only need an empty structure
            extended file, use CREATE.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   USE Sales
   COPY STRUCTURE EXTENDED TO Struc
   USE Struc
   LIST Field_name, Field_type, Field_len, Field_dec

   Result:

   1  BRANCH      C     3     0
   2  SALESMAN    C     4     0
   3  CUSTOMER    C     4     0
   4  PRODUCT     C     25    0
   5  AMOUNT      N     8     2



See Also: CREATE CREATE FROM FIELD() TYPE()

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