GetCompanyName PowerScript function
Description
Returns the company name for the current execution context.
Controls
ContextInformation objects
Syntax
|
1 |
<span>servicereference</span>.<span>GetCompanyName</span> ( <span>name</span> ) |
|
Argument |
Description |
|---|---|
|
servicereference |
Reference to the ContextInformation service |
|
name |
String into which the function places |
Return Values
Integer. Returns 1 if the function succeeds
and -1 if an error occurs.
Usage
Call this function to determine the company name (such as
Sybase, Inc.).
Examples
This example calls the GetCompanyName function:
|
1 |
String ls_company |
|
1 |
Integer li_return |
|
1 |
ContextInformation ci |
|
1 |
ci = create ContextInformation |
|
1 |
//or GetContextService("ContextInformation", ci) |
|
1 |
li_return = ci.<span>GetCompanyName</span>(ls_company) |
|
1 |
IF li_return = 1 THEN |
|
1 |
sle_co_name.text = ls_company |
|
1 |
END IF |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest