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 - _palias alias pointer http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _PALIAS             Alias pointer
------------------------------------------------------------------------------
 Declaration
   pick.hdr

 Syntax
   typedef ptr(alias) _PALIAS

 Description
   The _PALIAS type is used to declare a pointer to a database alias.
   A database alias pointer is returned by the dynopen() function, and used
   by the dynamic database manipulation functions. The _PALIAS type can also
   be used for alias parameters to various generic database functions,
   provided the _ALIASPTR_ control macro is defined.

 Example
   #define EXAMPLE_TYPE
   #define _DYNALIAS_
   #define _ALIASPTR_
   #include example.hdr

   proc Test_PALIAS
   vardef
      _PALIAS pDbf
   enddef
   pDbf := dynopen( 0, "stest.dbf", DO_SHARED ) // open database
   if pDbf
      ? afieldname( pDbf, 1 )
      dynclose( pDbf )                          // close database
   else
   ? "fuck"
   endif
   endproc

   proc main
   Test_PALIAS()
   endproc

See Also: dynopen()

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