WYRDTEK Home Features Reference Downloads About


Reference/es_mbc_getfldid

Syntax

int es_mbc_getfldid( struct es_mbc *cls, const char *fieldnm );

Arguments

struct es_mbc *cls A database class.
const char *fieldnm Field name.

Description

Return integer fieldid for the field const char *fieldnm in the class struct es_mbc *cls.

Fields are assigned an integer fieldid in the order they are added to a class via es_mbc_addfld. fieldids fall in the range 0..N-1 where N is the number of fields in a class definition. Use es_mbc_getnumflds to retrieve the number of fields.

Returns -1 if fieldnm does not exist in the class.

[Back To Reference] [Back To Reference/es_mbc]