of_getitemfordata


pfcmain.pbl   >   pfc_u_tv   >   of_getitemfordata   

Full name pfc_u_tv.of_getitemfordata
Access public
Extend of long
Return value long
Prototype public function long of_getitemfordata(ref n_ds,long)

Name Datatype
No Data

Name Datatype
ls_Key String

public function long of_getitemfordata (ref n_ds ads_obj, long al_row);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_GetItemForData
//
//	Access:  public
//
//	Arguments:
//	ads_obj			The handle to the DataStore (of type n_ds) for the item's
//									level.  Passed by reference.
//	al_Row						The row in the DataStore that the item points to.
//
//	Returns:		Long
//					The handle of the TreeView item that points to that row, 0 if the item
//					was not found, or -1 if an error occurrs
//
//	Description:	Return the TreeView item that points to a particular row in a DataStore.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

String				ls_Key

// Get the generated key for the row
ls_Key = ads_obj.Object.pfc_tvi_key[al_Row]
If ls_Key = "" Then Return -1

// Find the item
Return of_FindItem("data", ls_Key, 0, 0, False, True)

end function

     
Name Owner
No Data

     
Name Owner
pfc_u_tv.of_finditem pfc_u_tv

     
Full name
No Data

     
Name Scope
No Data