Grass-valley K2 TX/MAM Database Protocol Manual v.2.2 Manual de usuario Pagina 23

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 38
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 22
TX/MAM Database Protocol Manual - document version: 2.2 Page 23
8.3 Adding a field update for a string database field
int cob_fieldlist_set_string( char *field, char * value, int data_type );
Parameters
Name
Description
char *field
The field to get, e.g. "name".
char *value
The new value, e.g. "adjusted".
int data_type
The origin of the data, e.g. ORIGINAL_DATA.
Result
The result of the function is an integer that can have following values:
Value
Description
0
Success, the field has been added.
-1
Failure, the field could not be added.
Example
This example sets the name field to "adjusted" for main_event record with id == 1035:
cob_fieldlist_clear();
cob_fieldlist_set_string( "name", "adjusted", ORIGINAL_DATA );
if ( cob_adjust_field_values("main_event", 1035) != 0 ){
/* Log error */
}
Vista de pagina 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 37 38

Comentarios a estos manuales

Sin comentarios