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)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_restore (boolean ab_processapp, string as_regkey);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_Restore
//
//	Access:  		public
//
//	Arguments:	
// ab_processapp  True if restoring application info, false if restoring user info
//	as_regkey		The registry key path to read values from.
//
//	Returns:  		Integer
//						1 if it succeeds and -1 if an error occurs.
//
//	Description:  	Restores the preference information from the Registry.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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_regkey) or (as_regkey = "") then 
	return -1
end if

return of_Restore (true, ab_processapp, as_regkey, "")

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