PdcDatabase.CreateNewID: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == CreateNewID(Table as PdcDBTable,IndexName as String, FieldName as String, IniField as String) as String == Description == Creates a new ID like standard PdC..."
 
No edit summary
 
Line 6: Line 6:


== Notes ==
== Notes ==
This method creates a new ID for
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:<br />
The input parameters are:<br />
* Connectionkind as integer see below for connectionkinds.
* Connectionkind as integer see below for connectionkinds.

Latest revision as of 09:44, 26 March 2015

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)