PdcDatabase.CreateNewID
Jump to navigation
Jump to search
Declaration
CreateNewID(Table as PdcDBTable,IndexName as String, FieldName as String, IniField as String) as String
Description
Creates a new ID like standard PdC
Notes
This method creates a new ID. It's also possible to create an ID with a numbering mask which is defined in the settings from PdC.
The input parameters are:
- Connectionkind as integer see below for connectionkinds.
- Table name as string, the table name without the extention .ADT.
- Index name as string.
- FieldName as string
- IniField as String. This field is used in CONFIGDB to determine the ID type.
Code example
Dim table
Dim NewNumber
set table= PDC.Database.OpenTable(pdccondata,"BK_BESTEL","BK_NR")
NewNumber= PDC.Database.CreateNewID(table, "BK_NR", "BK_NR", "BESTELLAATST")
Availability
Available since juni 2012 (from version 4.3)