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 - alias database alias structure http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 alias               Database alias structure
------------------------------------------------------------------------------
 Syntax
   alias

 Arguments
   None.

 Features
   +----------------------------------------------------------------------+
   | Category             | special (database structure)                  |
   | Size                 | N/A                                           |
   | Range                | N/A                                           |
   | Parameter: value     | no                                            |
   | Parameter: reference | yes                                           |
   | Parameter: const     | yes                                           |
   | Return               | no                                            |
   +----------------------------------------------------------------------+

 Description
   The alias datatype is a complex storage form of database structural
   and runtime data.

 Example
   #define EXAMPLE_DATATYPE
   #include example.hdr

   dbfdef sTest         // declare alias via the dbfdef block
      char( 15 ) name
   enddef
   
   proc Test
   param alias sDbf     // alias passed as parameter
   ? areccount( sDbf )
   endproc
   
   proc Test_alias
   vardef
      alias sAlias      // Local alias without field descriptions.
                        // Only useful for dynamic database access.
   enddef
   build "stest.dbf" from alias sTest
   open sTest
   Test( sTest )
   erase "stest.dbf"
   endproc

   proc main
   Test_alias()
   endproc

See Also: ! -> index

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