Programming Guide



sm_ldb_*state_set

Changes the state of the LDB

int sm_ldb_state_set (char *ldbname, int state_type, int new_value);
int sm_ldb_h_state_set (int ldbhandle, int state_type, int new_value);

ldbname
The name of the LDB whose state you want to set.

ldbhandle
The integer handle of the LDB whose state you want to set.

state_type
Specifies the state to set with one of these constants:

LDB_ACTIVE
A Yes/No flag that specifies whether the LDB is active. Only active LDBs participate in LDB write-through.

LDB_READ_ONLY
A Yes/No flag that specifies whether the LDB is read-only. The default for newly activated LDBs is set to No. Screens can read from this LDB on screen entry but cannot modify it on exit; consequently, a read-only LDB cannot be used to transfer values from one screen to another.

new_value
A value of 1 (Yes) or 0 (No) to set for state_type.

Returns

Description

sm_ldb_state_set lets you change the status of an LDB in one of two ways:

See Also

sm_ldb_load, sm_ldb_state_get