pfc_additem


pfcmain.pbl   >   pfc_u_tvs   >   pfc_additem   

Full name pfc_u_tvs.pfc_additem
Access public
Extend of long
Return value long
Prototype event long pfc_additem(long,n_ds,long)

Name Datatype
No Data

Name Datatype
No Data

event pfc_additem;//////////////////////////////////////////////////////////////////////////////
//
//	Event:		pfc_AddItem
//
//	Arguments:	
//	al_parent	The handle to the Treeview item to place retrieved data under
//	ads_source	The DataStore containing the data to be used for the new item.
//						This can be the same DataStore that was created for the treeview, or
//						another maintained by the user.  If the latter, the row will be added
//						to the treeview DataStore. 
//	al_Row		The row in the DataStore pointing to the data.
//
//	Returns:		Long
//					 Handle of item added  
//					-1 = an error occurred
//
//	Description:	Add the item as the last child of the parent treeviewitem.
//
//////////////////////////////////////////////////////////////////////////////
//	
//	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 the arguments
If IsNull(ads_source) or Not IsValid(ads_source) Then Return -1
If (al_parent < 0) or IsNull(al_parent) Then Return -1
If (al_row < 1) or IsNull(al_row) then Return -1

return this.event pfc_insertitem(al_parent, ads_source, al_row, INSERT_LAST, 0)

end event

     
Name Owner
pfc_u_tvs.of_additem pfc_u_tvs

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_u_tvs.pfc_insertitem pfc_u_tvs

     
Full name
No Data

     
Name Scope
No Data