of_restore


pfcapsrv.pbl   >   pfc_n_cst_apppreference   >   of_restore   

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

Name Datatype
No Data

Name Datatype
No Data

public function integer of_restore (boolean ab_processapp, string as_inifile, string as_inisection);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_Restore
//
//	Access:  		public
//
//	Arguments:		
// ab_processapp  True if restoring application info, false if restoring user info
//	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
//	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.
//
//////////////////////////////////////////////////////////////////////////////

//Check for valid parameters
if isnull(ab_processapp) or isnull(as_inifile) or isnull(as_inisection) then 
	return -1
end if

if (as_inifile = "") or (as_inisection = "") then
	return -1
end if

Return of_Restore(false, ab_processapp, as_inifile, as_inisection)

end function

     
Name Owner
pfc_n_cst_apppreference.pfc_open pfc_n_cst_apppreference

     
Name Owner
systemfunctions.isnull systemfunctions
pfc_n_cst_apppreference.of_restore pfc_n_cst_apppreference

     
Full name
No Data

     
Name Scope
No Data