Programming Guide |
Reads data into an LDB entry
int sm_ldb_putfield (int field_number, char *ldbname, char *buffer);int sm_i_ldb_putfield (char *field_name, int occurrence, char *ldbname, char *buffer);int sm_n_ldb_putfield (char *field_name, char *ldbname, char *buffer);int sm_o_ldb_putfield (int field_number, int occurrence, char *ldbname, char *buffer);int sm_ldb_h_putfield (int field_number, int ldbhandle, char *buffer);int sm_i_ldb_h_putfield (char *field_name, int occurrence, int ldbhandle, char *buffer);int sm_n_ldb_h_putfield (char *field_name, int ldbhandle, char *buffer);int sm_o_ldb_h_putfield (int field_number, int occurrence, int ldbhandle, char *buffer);
field_name, field_number
- The LDB field to read the data in
buffer
.occurrence
- The occurrence to read the data.
ldbname
- The name of the LDB that contains the field.
ldbhandle
- The handle of the LDB that contains the field.
buffer
- The buffer that contains the data to read.
sm_ldb_putfield
reads the contents of the specified buffer into an entry or array occurrence in the specified LDB. This function and its variants let you specify an LDB by name or by handle. The LDB must be among one of the LDBs loaded into memory. If multiple instances of the same LDB are loaded, you can get the value from the desired instance by specifying its handle; if you specify the LDB by name, Panther gets the value from the last-loaded instance.