|
pfc_open
|
|
Full name
|
pfc_n_cst_appmanager.pfc_open
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event pfc_open(string)
|
Name
|
Datatype
|
li_rc
|
integer
|
event pfc_open;//////////////////////////////////////////////////////////////////////////////
//
// Event: pfc_open
//
// Arguments:
// as_commandline: command line parameter to the application
//
// Returns: None
//
// Description: Perform open processing
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
// 6.0 Add Application Preference and Most Recently Used Service hooks
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
integer li_rc
iapp_object.dwMessageTitle = iapp_object.DisplayName
// App Manager Preference services.
if IsValid (inv_AppPref) then
li_rc = inv_AppPref.Event pfc_open(as_commandline)
if li_rc < 0 and isvalid(inv_debug) then
of_MessageBox ("pfc_appmanager_appprefdebug", "PowerBuilder Class Library", &
"The PFC Application Preferences service" +&
" has been requested but the REQUIRED Application registry/INI File attributes" +&
" have not been set. Use of_SetAppKey/of_SetAppIniFile on the PFC Application" +&
" Manager to set the attribute.", &
Exclamation!, Ok!, 1)
end if
end if
// Initialize the Most Recently Used Serivce
if isvalid(inv_mru) then
inv_mru.event pfc_open(as_commandline)
end if
end event