|
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,long,integer,boolean)
|
public function long of_FindItem (string as_attribute, any aa_target, long al_begin, integer ai_level, boolean ab_respectcase);//////////////////////////////////////////////////////////////////////////////
//
// 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.
// ab_RespectCase True - search is case sensitive,
// False - search is not case sensitive. Only used if the target
// is a string.
//
// 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
// 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, al_Begin, ai_Level, ab_RespectCase, False)
end function