WYRDTEK Home Features Reference Downloads About



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


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


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]