of_unregister


pfcapsrv.pbl   >   pfc_n_cst_mru   >   of_unregister   

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

Name Datatype
No Data

Name Datatype
li_count Integer
li_position Integer

public function integer of_unregister (string as_id, integer ai_itemcount);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_UnRegister
//
//	Access:		public
//
//	Arguments:
//	as_id			   name of the id to remove from the service
//
//	Returns:		integer
//	SUCCESS = 1
//	ERROR = -1
//
//	Description:	unregister an id from the service and remove its data
//
//////////////////////////////////////////////////////////////////////////////
//
//	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_count, li_position

// check for valid values
if IsNull(as_id) or (as_id = "") Then 
	Return -1
end if

// Trim and Convert the ID to lower case.
as_id = Trim(Lower(as_id))

// get the position of the registered id
li_position = of_GetRegistered(as_id)
if li_position < 1 then
	Return -1
End If

// remove from register array
inv_register[li_position].is_id = ""
inv_register[li_position].ii_itemcount = 0

// remove from datastore
this.of_reset(as_id)

Return 1
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.lower systemfunctions
systemfunctions.trim systemfunctions
pfc_n_cst_mru.of_reset pfc_n_cst_mru
pfc_n_cst_mru.of_getregistered pfc_n_cst_mru

     
Full name
No Data

     
Name Scope
No Data