Programming Guide



sm_ldb_init

Initializes or reinitializes local data blocks

void sm_ldb_init(void);

Environment

C only

Description

sm_ldb_init unloads all LDBs from memory, whether active or not. It then loads and activates the same LDBs as at application startup. At application startup, Panther calls this function and attempts to load and activate LDBs as follows:

  1. Looks for the configuration variable SMLDBLIBNAME and opens all screens in the specified libraries as LDBs. The default value for this variable is ldb.lib.
  2. Looks for the configuration variable SMLDBNAME and opens the specified screens as LDBs. For example:
    SMLDBNAME = screen1.scr screen2.scr screen3.scr

    The default value for this variable is ldb.scr.