[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
ADD_FLD() Add a field to a structure extended database
Description:
ADD_FLD() adds a field to a "structure extended" database.
Syntax:
ADD_FLD( <expC1>, <expC2>, <expN1>, <expN2> )
Pass:
<expC1> = Name of field
<expC2> = Field type ("C", "M", "D", "N" or "L")
<expN1> = Length of field
<expN2> = Digits to right of decimal place for numeric fields
Return:
<expL> = Always .T.
Notes:
You must have a structure extended database open in the currently
selected work area prior to calling ADD_FLD().
Example:
CREATE tmpfile
USE tmpfile
ADD_FLD( "LAST_NAME ", "C", 20, 0 )
ADD_FLD( "FRST_NAME ", "C", 15, 0 )
ADD_FLD( "PHONE ", "C", 12, 0 )
USE
CREATE myfile FROM tmpfile
.
.
.
Usage:
ADD_FLD() saves you from having to issue several APPEND BLANKS and
REPLACE statements when creating a structure extended database.
See Also:
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson