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>lbl_load() read (.lbl) into a (.mem) and (.dbf) files rlback.prg</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Lbl_load()     Read (.lbl) into a (.mem) and (.dbf) files    Rlback.prg


Syntax:        Lbl_load(<lbl_file>, <dbf_file>, <mem_file>)

Arguments:     <lbl_file> is the name of the LABEL FORM file to
               load.

               <dbf_file> is the name of the database file to be
               used for contents descriptions.

               <mem_file> is the name of the memory file to be used
               for label specifications.

Returns:       A logical value.

               Returns true (.T.) if the load was successful.

Description:   Lbl_load() is used to load the contents of a standard
               (.lbl) file into a database file and memory file suitable
               for editing by a label editing interface program.

               The label form description is divided into two sections:
               the label contents and the label specifications.  The
               contents are loaded into <dbf_file>.  This database file
               is created each time Lbl_load() is invoked and has the
               following structure:

               Table: Structure of <dbf_file>
               ------------------------------------------
               Field  Field Name  Type       Width    Dec
               ------------------------------------------
                   1  Contents    Character     60
               ------------------------------------------

               Each record in the database file created by Lbl_load()
               contains the contents of one LABEL FORM line.

               The label specifications are saved to <mem_file> which
               contains the following memory variables:

               Table: <lbl_mem> variables
               -----------------------------------------------------
                Variable      Default        Meaning
               -----------------------------------------------------
                lbl_remark    SPACE(60)      Label comment field
                lbl_height    5              Lines per label
                lbl_width     35             Columns per label
                lbl_margin    0              Offset from left
                lbl_lines     1              Lines between labels
                lbl_spaces    0              Columns between labels
                lbl_across    1              Number of labels across
               ------------------------------------------------------


Calls:         Create_dbf()
               Word_2_num()


Notes:         . <lbl_file> must be specified with an extension.
               . If the (.lbl) is not found, the (.dbf) and (.mem) files
                 are initialized with  defaults.
               . File errors are indicated by the number placed in the
                 variable: "file_error."

See Also: Create_dbf() Lbl_save() Word_2_num()

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