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 - append blank add a blank record to the end of a database http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 append blank        Add a blank record to the end of a database
------------------------------------------------------------------------------
 Syntax
   [!sAlias] append blank                                                     #

 Arguments
   sAlias is the destination database alias to which a record is appended.

 Description
   The append blank command adds a blank record to the end of the currently
   selected or specified alias. The entire record is filled with spaces,
   (ASCII 32 or hex 20). Numeric fields are initialized to 0 and logical
   fields are set to .f.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_appendblank
   clear
   open sTest
   append blank // append a record to the database before a get
   @ 10,10 say "Input name: " get sTest->lastname
   read
   ? "New database record contains last name", sTest->lastname
   endproc

   proc main
   Test_appendblank()
   endproc

See Also: append from copy to

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