PdcApplication.Title

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

Title as String

Description

Returns the title of the application

Notes

Especially useful when checking if the script is run on the correct environment.

Code example

When a script is started, check the environment's title, if not correct, do not start script.

const cstrPdCOK = "BEMET"
dim GoOn

  if InStrInStr(Ucase(pdc.Title),cstrPdCOK) > 0 then 
    GoOn = true
  else
    GoOn = false
  end if

Availability

Available since January 2006.(From version 3.6)