GetShortName – PB Docs 2017

GetShortName

PowerScript function

Description

Gets the short name for the current PowerBuilder execution
context.

Applies to

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 value

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 2017 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

GetCompanyName

GetContextService

GetFixesVersion

GetHostObject

GetMajorVersion

GetMinorVersion

GetName

GetVersionName


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