PdcDatabase.UserTableExists

From External Bemet Wiki
Revision as of 11:21, 11 December 2015 by TC (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

UserTableExist(TableName: String) as boolean

Description

Checks wether or not a table does already exist in the PdC database.

Notes

This call is only for usertables. Also the name of the table must start with 'UT_' which is the required naming convention in PdC.
You can find all usertables in the menu 'pdc.maintenance.tables.userfields' and filter on field 'TB_ISUSERTABLE=True'.

Code example

  if pdc.Database.usertableexists("UT_TABLE") then
    msgbox "Yes, table exists."
  else
    msgbox "No, it does not exists."
  end if

Availability

Available since 11-12-2015 (from version 5.1 onwards)