of_gethandle


pfcapsrv.pbl   >   pfc_n_cst_tvsrv_levelsource   >   of_gethandle   

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

Name Datatype
No Data

Name Datatype
li_level Integer

public function long of_gethandle (ref n_ds ads_obj, long al_row);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_GetHandle
//
//	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 handle to the TreeView item that refers to a particular 
//						row in a DataStore.
//
//		This function overloads the real of_GetHandle function to allow the level 
//		parameter 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.
//
//////////////////////////////////////////////////////////////////////////////
Integer	li_level

// check arguments
If IsNull(ads_obj) or Not IsValid(ads_obj) then Return -1
If IsNull(al_row) or (al_row < 1) then Return -1

// find the level this datastore is on
li_level = this.of_getlevel(ads_obj)
If li_level < 1 Then Return -1

Return of_GetHandle(ads_obj, al_row, li_level)

end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_tvsrv_levelsource.of_getlevel pfc_n_cst_tvsrv_levelsource
pfc_n_cst_tvsrv_levelsource.of_gethandle pfc_n_cst_tvsrv_levelsource

     
Full name
No Data

     
Name Scope
No Data