GetShortName – PB Docs 126

GetShortName PowerScript function

Description

Gets the short name for the current PowerBuilder execution
context.

Controls

ContextInformation objects

Syntax

Argument

Description

servicereference

Reference to the ContextInformation service
instance.

shortname

String into which the function places
the short name. This argument is passed by reference.

Return Values

Integer. Returns 1 if the function succeeds
and -1 if an error occurs.

Usage

Call this function to determine the current execution environment.
The window plug-in and window ActiveX contexts are obsolete in the
current version of PowerBuilder. For PowerBuilder 12 applications,
the only value passed for the shortname argument
is “PBRun”.

Examples

This example calls the GetShortName function. ci is
an instance variable of type ContextInformation:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x