of_FindItem


pfcmain.pbl   >   pfc_u_tv   >   of_FindItem   

Full name pfc_u_tv.of_FindItem
Access public
Extend of long
Return value long
Prototype public function long of_FindItem(string,any)

Name Datatype
No Data

Name Datatype
No Data

public function long of_FindItem (string as_Attribute, any aa_Target);//////////////////////////////////////////////////////////////////////////////
//
//	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.
//									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 4
//						retrieval argument to be optional.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0   Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
//	Copyright © 1996-1999 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, 0, 0, False, False)

end function

     
Name Owner
No Data

     
Name Owner
pfc_u_tv.of_finditem pfc_u_tv

     
Full name
No Data

     
Name Scope
No Data