SaveNext

SaveNext_DB_SelectTable, SaveNext_DB_SetAutoField, SaveNext_DB_SetExtMapping, SaveNext_ToDatabase

SaveNext_DB_SelectTable

Description 

 SaveNext_DB_SelectTable(
   char *Database,
   char *Table,
   char *User
);

This function defines the table as the source for the SaveNext functions.

Parameters

char *Database

The name of already opened database.

char *Table

The name or unique name of the table with in the specified database.

char *User

The user (account) name for the database. It can be NULL (0) and then the user name will be retrieved from the list of opened sessions according to the database name.

Note

Cause more than one user can be connected to the same database at the time, the user name is also used to distinguish among the databases. Not only the database name.

See Also 
SaveNext_DB_SetAutoField

SaveNext_DB_SetAutoField

Description 

 SaveNext_DB_SetAutoField(
   char *FiledName,
   char *Prefix,
   int  Digits,
   int  SaveNext_Num
);

This function changes the values which are stored to the newly created record in call of save next.

Parameters

char *FiledName

Name or unique name of the field.

char *Prefix

Text to be used as prefix.

int Digits

Number of digits to add as the index. (Eg 1 in 3 digits is 001.)

int SaveNext_Num

Index to use in next storing image. Each time image is stored, the index is incremented.

See Also 
SaveNext_DB_SelectTable

SaveNext_DB_SetExtMapping

Description 

 SaveNext_DB_SetExtMapping(
   int  EnableMapping,
    MappingFile
);

This function enables and changes external mapping source file.

Parameters

int EnableMapping

Flag which defines whether enable or disable external mapping.

0

Disable external mapping.

1

Enable external mapping.

MappingFile

Path where file with mapping values is located. The file must have format of standard windows ini file. The fields are read from the section with the same name as the destination table name.

See Also 
SaveNext_DB_SelectTable, SaveNext_DB_SetAutoField, SaveNext_ToDatabase

SaveNext_ToDatabase

Description 

 SaveNext_ToDatabase(
   bool  SN_ToDatabase
);

This function checks or unchecks the specified database and table as destination for the SaveNext functions.

Parameters

bool SN_ToDatabase

Flag which specifies if the database table should be used as the destination for SaveNext.

0, FALSE

Use files as image destination.

1, TRUE

Use database table as image destination.