|
of_AddItem
|
|
Full name
|
pfc_u_lv.of_AddItem
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_AddItem(long)
|
Name
|
Datatype
|
ll_Handle
|
Long
|
llvi_Item
|
ListViewItem
|
public function long of_AddItem (long al_row);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_AddItem
//
// Access: public
//
// Arguments:
// al_Row The row in the DataStore to use for the new item's attributes.
//
// Returns: Long
// Returns the handle of item added if successfull, -1 if an error occurred
//
// Description: Add a new item to the ListView using data from the data source.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.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.
//
//////////////////////////////////////////////////////////////////////////////
Long ll_Handle
ListViewItem llvi_Item
// Set the item's attributes
If of_SetAttributes(al_Row, llvi_Item) = -1 Then Return -1
// Add the item
ll_Handle = AddItem(llvi_Item)
If ll_Handle = -1 Then Return -1
If ll_Handle > il_LastHandle Then il_LastHandle = ll_Handle
Return ll_Handle
end function