Fields

DB_AppendField, DB_SetField

DB_AppendField

Description 

 DB_AppendField(
   int64  DB_TableHandle,
   char *DB_FieldName,
   int  DB_FieldType,
   char *DB_DefValue,
   int  DB_DefTitle,
   int  DB_FieldMapping,
   char *EnumValues
);

This function performs the second step (DB_CreateTable function must be called before it) of the creating new table procedure. Use this function to append fields in new table - each call adds a new field.

Parameters

int64 DB_TableHandle

Handle returned by DB_CreateTable function.

char *DB_FieldName

Name of the new field.

int DB_FieldType

Can be one of following values:

0

Unknown.

1

Integer.

2

Double.

3

String.

4

LongString.

5

Boolean.

6

Enumeration.

7

DateTime (double value of The Julian Day Number).

11

ExternalLink.

char *DB_DefValue

Default value (as string).

int DB_DefTitle

Nonzero if this field should be shown as title.

int DB_FieldMapping

Can be one of the following values:

0

Default value.

1

Filename.

3

Path.

4

Dimensions.

5

Size.

6

Filedate.

7

Calibration.

8

Image ID.

9

Type.

10

Group.

11

Sample ID.

12

Author.

13

Description.

14

Capturing.

15

Sampling.

16

Location.

17

Date.

18

Conclusion.

19

Info1.

20

Info2.

21

Optics.

char *EnumValues

If field type is enumeration then EnumValues must be string consists of enum. values separated by zeros and ended by double zero eg. value1\0value2\0value3\0\0.

See Also 
DB_AppendTable, DB_CreateTable

DB_SetField

Description 

 DB_SetField(
   char *DB_FieldName,
   char *DB_FieldValue
);

This function sets the field value in the active record that has been previously selected by the DB_SetActiveRecord function.

Parameters

char *DB_FieldName

Name of the new field.

char *DB_FieldValue

The new field value (as string).

See Also 
DB_SetActiveRecord, DB_AppendField, DB_CreateTable, DB_AppendTable