DBASEgetLongByOffset

Top  Previous  Next

A field value as long int zurückliefern.

In a record it is searched long int which is identified about the offset offset and the length length. If no value can be found, becomes 0 zurückgeliefert. If the value is not interpretable as long int, the zurückgelieferte value is undefined one.

The offset and the length of field name is able with the function DBASEgetFieldOffsetAndLength are determined.

Parametre

buf (DBbuffer *) [IN]

Act on the open data bank.

elem (void *) [IN]

A before selected record

offset (long int) [IN]

offset describes the position in the record.

length (long int) [IN]

length describes the length of the field value in the record from the position offset.

Result

(long int) [OUT]

The stand-in's value which is identified in the record about offset and length, or 0 if no field from exists offset. In the mistake case the value is undefined one.

Declaration

#include "dbase.h"

 

long int DLLENTRY DBASEgetLongByOffset (

DBbuffer * buf,

void * elem,

long int offset,

long int length

);

Related functions

DBASEfindDataset

DBASEgetDataset

DBASEgetFieldOffsetAndLength

DBASEgetLongByName