PdcDatabase.OpenTable
Jump to navigation
Jump to search
Declaration
OpenTable(Connection as pdcConnectionKind,TableName as String,IndexName as String) as PdcDBTable
Description
Open a table in the data dictionary
Notes
This method returns an databasetable that is added to the datadictionary.
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.
Code example
Dim table
Set table = pdc.DataBase.OpenTable(pdcConData, "LM_MAT", "LM_MATN")
Or
Dim table
Set table = pdc.DataBase.OpenTable(1, "LM_MAT", "LM_MATN")
The following pdcConnectionKinds are available:
pdcConnectionKind - Value - Info
pdcConNone - 0
pdcConData - 1 - Data-files
pdcConATRData - 2 - ATR-files
pdcConLijst - 3 - List-files
pdcConPlan - 4 - Planning-files
pdcConTemp - 5 - Temp-files
pdcConHis - 6 - History-files
pdcConNCData - 7 - NC-Data-files
pdcConWerk - 8 - Work-files
pdcConCustom - 9
Availability
Available since June 2008 (from version 3.8)