of_InsertItem


pfcmain.pbl   >   pfc_u_tv   >   of_InsertItem   

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

Name Datatype
No Data

Name Datatype
No Data

public function long of_InsertItem (long al_parent, ref n_ds ads_obj, long al_row);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_InsertItem
//
//	Access:  public
//
//	Arguments:
//	al_Parent					The handle of the parent TreeView item that the new item will
//									be inserted under.
//	ads_obj			The DataStore containing the data to be used for the new item.
//									This can be the same DataStore that was created for the level, or
//									another maintained by the user.  If the latter, the row will be added
//									to the level's DataStore.  Passed by reference.
//	al_Row						The row in the DataStore pointing to the data.
//
//	Returns:		Long
//					Returns the handle of the item if it was added successfully, -1 if an error occurrs.
//
//	Description:	Add a new item to the TreeView using data from a DataStore.
//
//						This function overloads the real of_InsertItem function to allow the last 2
//						parameter to be optional.  The item will be inserted as the First child.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////
	
Return of_InsertItem(al_Parent, ads_obj, al_Row, "first", 0)

end function

     
Name Owner
No Data

     
Name Owner
pfc_u_tv.of_InsertItem pfc_u_tv

     
Full name
No Data

     
Name Scope
No Data