Retrieving the first database in a program (sys.FirstDatabase)ΒΆ

sys.FirstDatabase,,p

First database in a program

Version >= 5.8.9

A pointer to the first database in a program. Since Sculptor pre-defines databases, the programmer should not rely on the first database to be any particular one.

The value of sys.FirstDatabase can be assigned to another pointer field, as in the example below.


EXAMPLE

!temp pdb,,p

     pdb = &sys.FirstDatabase

RELATED TOPICS

ODBC - declaring a database

next_object()