pfc_populate


pfcmain.pbl   >   pfc_u_tvs   >   pfc_populate   

Full name pfc_u_tvs.pfc_populate
Access public
Extend of long
Return value long
Prototype event long pfc_populate(long)

Name Datatype
No Data

Name Datatype
No Data

event pfc_populate;//////////////////////////////////////////////////////////////////////////////
//
//	Event:		pfc_Populate
//
//	Arguments:	
//	al_parent	The handle to the Treeview item to place retrieved data under
//
//	Returns:		Long
//			 # of items treeview was populated with
//			 0 if nothing was populated
//			-1 = error
//
//	Description:
//	retrieves the datasource and uses it to load the treeview with data
//
//////////////////////////////////////////////////////////////////////////////
//	
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// check arguments
IF (al_parent < 0) or IsNull(al_parent) then Return -1

// add the treeview data
Return this.of_populate(al_parent) 

end event

     
Name Owner
pfc_n_cst_tvsrv_levelsource.pfc_itemexpanding pfc_n_cst_tvsrv_levelsource

     
Name Owner
systemfunctions.isnull systemfunctions
pfc_u_tvs.of_populate pfc_u_tvs

     
Full name
No Data

     
Name Scope
No Data