|
of_save
|
|
Full name
|
pfc_n_cst_apppreference.of_save
|
Access
|
protected
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
protected function integer of_save(boolean,string,string,string,string)
|
protected function integer of_save (boolean ab_useregistry, string as_keyorini, string as_inisection, string as_subkey, string as_value);//////////////////////////////////////////////////////////////////////////////
//
// 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.
// as_SubKey The key value to be used on either the Registry or .Ini file.
// as_value The value to be stored on either the Registry or .Ini file.
//
// Returns: integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description: Perform the actual put into the Registry or the .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.
//
//////////////////////////////////////////////////////////////////////////////
If ab_UseRegistry Then
If RegistrySet (as_KeyOrIni, as_SubKey, as_Value) =1 Then
Return 1
End If
Return -1
End If
If SetProfileString (as_KeyOrIni, as_IniSection, as_SubKey, as_Value) =1 Then
Return 1
End If
Return -1
end function
Name
|
Owner
|
systemfunctions.registryset |
systemfunctions
|
systemfunctions.setprofilestring |
systemfunctions
|