Returns the company name for the current execution context.
ContextInformation objects
servicereference.GetCompanyName ( name )
Argument |
Description |
---|---|
servicereference |
Reference to the ContextInformation service instance. |
name |
String into which the function places the company name. This argument is passed by reference. |
Integer. Returns 1 if the function succeeds and -1 if an error occurs.
Call this function to determine the company name (such as Sybase, Inc.).
This example calls the GetCompanyName function:
String ls_company
Integer li_return
ContextInformation ci
ci = create ContextInformation
//or GetContextService("ContextInformation", ci)
li_return = ci.GetCompanyName(ls_company)
IF li_return = 1 THEN
sle_co_name.text = ls_company
END IF