|
pfc_insertitem
|
|
Full name
|
pfc_n_cst_lvsrv_datasource.pfc_insertitem
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_insertitem(n_ds,long,listviewitem,string,integer)
|
event pfc_InsertItem;call super::pfc_InsertItem;//////////////////////////////////////////////////////////////////////////////
// Event: pfc_InsertItem
// Arguments: 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 listview, or
// another maintained by the user. If the latter, the row will be added
// to the listviews DataStore. Passed by reference.
// al_Row The row in the DataStore pointing to the data.
// alvi_item The Item to be added to the listview
// as_Position The position under the parent where the new item will be inserted:
// "First" - before the first item of the listview
// "Last" - after the last listview item (default)
// "Before" - before the item with index ai_item
// "After" - after the item with index ai_item
// ai_Item The index to the item which the new item will be inserted either after or before.
// Ignored unless as_Position = "After" or "Before".
// Returns: Integer
// Returns the index of the item if it was added successfully,
// -1 if an error occurrs.
// Description: Add a new item to the ListView using data from a DataStore.
//////////////////////////////////////////////////////////////////////////////
// Rev. History: Version
// 6.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(ads_obj, al_row, alvi_item, as_position, ai_item)
end event