Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - label form display a label http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 label form          Display a label
------------------------------------------------------------------------------
 Syntax
   [!sAlias] label form sLabel [scope] [sample] [to print] [to file cFile]

 Arguments
   sAlias is the database to operate on.
   sLabel is a label structure declared in a labeldef block.
   scope specifies a portion of the source database.
   cFile is a file name to receive label output.

 Description
   The label command displays labels specified by sLabel. The default scope
   for label is all. The label command does not poll the keyboard for
   any key as Force does not support the set escape command.

   The sample clause generates an optional sample before the label is output.
   Following a sample label the query "Do you want more samples? (Y/N)" is
   displayed. Answering "Y" results in another test label display, while
   answering "N" starts the printing of the actual labels.

   The to print clause causes duplication of screen output to the
   current print device or through the print device defined by the
   set print to command.

   The to file clause redirects label output to cFile.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_labelform
   open sTest
   label form sLabCust all sample to file "labels.txt"
   close all
   erase "labels.txt"
   endproc

   proc main
   Test_labelform()
   endproc

See Also: Database command scope table labeldef report form sample

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