PdcApplication.Title: Difference between revisions
Jump to navigation
Jump to search
m moved Title to PdcApplication.Title |
No edit summary |
||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
Title as String | |||
== Description == | == Description == | ||
Returns the title of the application | |||
== Notes == | == Notes == | ||
Especially useful when checking if the script is run on the correct environment. | |||
== Code example == | == Code example == | ||
When a script is started, check the environment's title, if not correct, do not start script. | |||
<source lang="vb"> | <source lang="vb"> | ||
const cstrPdCOK = "BEMET" | |||
dim GoOn | |||
if InStrInStr(Ucase(pdc.Title),cstrPdCOK) > 0 then | |||
GoOn = true | |||
else | |||
GoOn = false | |||
end if | |||
</source> | </source> | ||
== Availability == | == Availability == | ||
Available since January 2006.(From version 3.6) |
Latest revision as of 11:43, 21 May 2012
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)