pfc_mruclicked


pfcmain.pbl   >   pfc_w_master   >   pfc_mruclicked   

Full name pfc_w_master.pfc_mruclicked
Access public
Extend of integer
Return value integer
Prototype event integer pfc_mruclicked()

Name Datatype
No Data

Name Datatype
li_row integer
ls_menutext string

event pfc_mruclicked;//////////////////////////////////////////////////////////////////////////////
//
//	Event:		pfc_mruclicked
//
//	Arguments:	None
//
//	Returns:		integer
//	SUCCESS = 1
//	ERROR = -1
//
//	Description:
//	Triggered when MRU memu item is selected.  Checks for existence of menu item
// in datastore and triggers pfc_mruprocess event if menu item found
//
//////////////////////////////////////////////////////////////////////////////
//	
//	Revision History
//
//	Version
//	6.0   Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
//	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_row
string		ls_menutext 

// check parameters 
ls_menutext = message.stringparm
if isnull(ls_menutext) or ls_menutext = "" then
	return -1
end if 

if isvalid(gnv_app.inv_mru) then
	// determine if item selected is within our mru list
	li_row = gnv_app.inv_mru.of_finditem(ls_menutext, 0)
	if li_row > 0 then
		return this.event pfc_mruprocess(li_row)
	end if
end if

Return -1
end event

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_mru.of_finditem pfc_n_cst_mru
pfc_w_master.pfc_mruprocess pfc_w_master

     
Full name
demopfc

     
Name Scope
No Data