of_finditem


pfcapsrv.pbl   >   pfc_n_cst_tvsrv   >   of_finditem   

Full name pfc_n_cst_tvsrv.of_finditem
Access public
Extend of long
Return value long
Prototype public function long of_finditem(string,any,long,integer)

Name Datatype
No Data

Name Datatype
No Data

public function long of_finditem (string as_attribute, any aa_target, long al_begin, integer ai_level);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_FindItem
//
//	Access:		public
//
//	Arguments:
//	as_Attribute	The attribute of the TreeView item to search ("Label", 
//						or "Data")
//	aa_Target		A variable of type Any containg the search target.
//	al_Begin			The handle of the TreeView item to begin searching, if
//						0 entire tree will be searched.
//	ai_Level			The level to search, if 0 entire tree will be searched.
//
//	Returns:		Long
//					The handle of the item whose Label matches the target.  Returns 0
//					if not found, -1 if an error occurrs.
//
//	Description:	Search for an item in the TreeView.  This function calls of_SearchChild
//						which is recursive to search for the target in either the Label or Data attribute
//						of the TreeView items.  It will use the pfc_searchcompare event to actually
//						perform the comparison.  Override this event if another comparison is desired.
//
//		This function overloads the real of_FindItem function to allow the last 2
//		retrieval argument to be optional.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

Return of_FindItem(as_Attribute, aa_Target, al_Begin, ai_Level, False, False)

end function

     
Name Owner
No Data

     
Name Owner
pfc_n_cst_tvsrv.of_finditem pfc_n_cst_tvsrv

     
Full name
No Data

     
Name Scope
No Data