[<<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.ClipX.Net --- NG 2 HTML conversion by Dave Pearson