of_populate


pfcmain.pbl   >   pfc_u_tvs   >   of_populate   

Full name pfc_u_tvs.of_populate
Access public
Extend of long
Return value long
Prototype public function long of_populate(long)

Name Datatype
No Data

Name Datatype
lds_data n_ds

public function long of_populate (long al_parent);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_Populate
//
//	Access:		Public
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////
n_ds		lds_data

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

Setpointer(hourglass!)

// retrieve the data into the services datastore
IF this.event pfc_retrieve(al_parent, lds_data) < 0 Then Return -1

// add the treeview data
Return this.event pfc_AddAll(al_parent, lds_data) 

end function

     
Name Owner
pfc_u_tvs.pfc_populate pfc_u_tvs

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.setpointer systemfunctions
pfc_u_tvs.pfc_retrieve pfc_u_tvs
pfc_u_tvs.pfc_addall pfc_u_tvs

     
Full name
No Data

     
Name Scope
No Data