of_restore


pfcwnsrv.pbl   >   pfc_n_cst_winsrv_preference   >   of_restore   

Full name pfc_n_cst_winsrv_preference.of_restore
Access public
Extend of integer
Return value integer
Prototype public function integer of_restore(string,string)

Name Datatype
No Data

Name Datatype
li_rc integer
lnv_menu n_cst_menu
lw_obj window

public function integer of_restore (string as_inifile, string as_inisection);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_Restore
//
//	Access:  		public
//
//	Arguments:		
//	as_inifile		The name of the .INI file to restore settings from
//	as_inisection	The section name in the .INI file to restore settings from
//
//	Returns:  		Integer
//						1 if it succeeds and -1 if an error occurs.
//
//	Description:  	Restores the preference information from an .Ini file.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.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_rc
window		lw_obj
n_cst_menu 	lnv_menu

//Check for a window association with this object.
If IsNull(iw_requestor) Or Not IsValid (iw_requestor) Then 
	Return -1
End If

//Prevent flickering of toolbars.
lnv_menu.of_GetMDIFrame(iw_requestor.MenuID, lw_obj)
If IsValid(lw_obj) Then	
	lw_obj.SetRedraw(False)
Else
	iw_requestor.SetRedraw(False)
End If

li_rc = of_Restore(False, as_inifile, as_inisection)

//Prevent flickering of toolbars.
If IsValid(lw_obj) Then	
	lw_obj.SetRedraw(True)
Else
	iw_requestor.SetRedraw(True)
End If

Return li_rc
end function

     
Name Owner
pfc_w_master.open pfc_w_master

     
Name Owner
window.setredraw window
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_winsrv_preference.of_restore pfc_n_cst_winsrv_preference
pfc_n_cst_menu.of_getmdiframe pfc_n_cst_menu

     
Full name
No Data

     
Name Scope
No Data