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</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
COPY STRUCTURE


Syntax:     COPY STRUCTURE [FIELDS <field list>] TO <file>/(<expC>)

Purpose:    To create an empty database file with field definitions from
            the current database file.

Arguments:  <file> is the target database file.  The default
            extension is (.dbf) unless another is specified.

Options:    Fields: The <field list> is the set of fields to COPY to
            the new database structure in the order specified.  The
            default is all fields.

Library:    CLIPPER.LIB


----------------------------------- Example --------------------------------

   USE Sales
   ? LASTREC()                 && Result: 84

   COPY STRUCTURE FIELDS Branch, Salesman TO Temp
   USE Temp
   ? LASTREC()                 && Result: 0


See Also: COPY STRU EXTENDED CREATE

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