of_saveuser


pfcapsrv.pbl   >   pfc_n_cst_apppreference   >   of_saveuser   

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

Name Datatype
No Data

Name Datatype
li_rc integer
lnv_conversion n_cst_conversion

protected function integer of_saveuser (boolean ab_useregistry, string as_keyorini, string as_inisection);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_Save
//
//	Access:  		protected
//
//	Arguments:	
//	ab_UseRegistry	Function behavior - use the registry or an .ini file.
//	as_KeyOrIni		The KeyName for use with the Registry or the IniFile name
//						for use with an .Ini file.
//	as_IniSection	The name of the .Ini section. 
//
//	Returns:  		Integer
//						 1 if it succeeds and -1 if an error occurs.
//
//	Description:  	Saves the App User preference information to either the Registry or
//						to 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.
//
//////////////////////////////////////////////////////////////////////////////

integer				li_rc
n_cst_conversion 	lnv_conversion

//Parameter checking done in calling function

//Save user information
li_rc = of_Save (ab_UseRegistry, as_KeyOrIni, as_IniSection, 'toolbartext', &
	lnv_conversion.of_string(inv_appmanager.iapp_object.toolbartext))
li_rc = of_Save (ab_UseRegistry, as_KeyOrIni, as_IniSection, 'toolbartips', &
	lnv_conversion.of_string(inv_appmanager.iapp_object.toolbartips))
li_rc = of_Save (ab_UseRegistry, as_KeyOrIni, as_IniSection, 'userid', &
	inv_appmanager.of_GetUserid() )

Return li_rc

end function

     
Name Owner
pfc_n_cst_apppreference.of_save pfc_n_cst_apppreference

     
Name Owner
pfc_n_cst_conversion.of_string pfc_n_cst_conversion
pfc_n_cst_apppreference.of_save pfc_n_cst_apppreference
pfc_n_cst_appmanager.of_getuserid pfc_n_cst_appmanager

     
Full name
No Data

     
Name Scope
No Data