|
of_insertitem
|
|
Full name
|
pfc_u_tvs.of_insertitem
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_insertitem(long,ref n_ds,long,string,long)
|
public function long of_insertitem (long al_parent, ref n_ds ads_obj, long al_row, string as_position, long al_handle);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_InsertItem
//
// Access: public
//
// Arguments:
// al_parent The handle to the Treeview item to place retrieved data 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 treeview, or
// another maintained by the user. If the latter, the row will be added
// to the treeviews DataStore.
// al_Row The row in the DataStore pointing to the data.
// as_Position The position under the parent where the new item will be inserted:
// "First" - before the first child of the parent
// "Last" - after the last child (default)
// "Sort" - in the sorted position based on the item's label
// "After" - after the item with handle al_handle
// al_handle The handle to the item after which the new item will be inserted.
// Ignored unless as_Position = "After".
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
Return this.event pfc_insertitem(al_parent, ads_obj, al_row, as_position, al_handle)
end function