of_pop


pfcapsrv.pbl   >   pfc_n_cst_stack   >   of_pop   

Full name pfc_n_cst_stack.of_pop
Access public
Extend of integer
Return value integer
Prototype public function integer of_pop(ref n_cst_linkedlistnode)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_pop (ref n_cst_linkedlistnode anv_node);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_Pop
//
//	Access:  public
//
//	Arguments : 
//	anv_node  (by reference) node to be returned
//
//	Returns:  integer
//	1 = success
//	-1 = failure 
//
//	Description: 
//	Gets and removes the TOP/Head node.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Validate that the reference to get is valid.
if isnull(inv_head) or not isvalid(inv_head) then 
	return -1
end if

// Take the top node.
anv_node = inv_head

// Remove the node.
return of_remove(anv_node)
	
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_linkedlistbase.of_remove pfc_n_cst_linkedlistbase

     
Full name
No Data

     
Name Scope
No Data