of_isinlist


pfcapsrv.pbl   >   pfc_n_cst_list   >   of_isinlist   

Full name pfc_n_cst_list.of_isinlist
Access public
Extend of boolean
Return value boolean
Prototype public function boolean of_isinlist(n_cst_linkedlistnode)

Name Datatype
No Data

Name Datatype
lnv_locatenode n_cst_linkedlistnode

public function boolean of_isinlist (n_cst_linkedlistnode anv_node);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_IsInList
//
//	Access:  public
//
//	Arguments : 
//	anv_node  Node contain data to search for.
//
//	Returns:  Boolean
//	True - Yes in list.
// False - Not found.
//
//	Description:  
//	Determines if the Key Values in the node passed in are already in the list.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

n_cst_linkedlistnode lnv_locatenode

// Validate arguments.
If IsNull(anv_node) Or Not IsValid(anv_node) Then Return	False

// If necessary, create the default comparison object.
if isnull(inv_compare) or not isvalid(inv_compare) then
	inv_compare = create n_cst_linkedlistnodecompare
end if

If of_find(lnv_locatenode, anv_node) = 1 Then
	// Node was found in list.
	Return True
End If

Return False
end function

     
Name Owner
pfc_n_cst_list.of_addhead pfc_n_cst_list
pfc_n_cst_list.of_addtail pfc_n_cst_list
pfc_n_cst_list.of_add pfc_n_cst_list

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_list.of_find pfc_n_cst_list

     
Full name
No Data

     
Name Scope
No Data