|
of_RefreshItemForRow
|
|
Full name
|
pfc_u_lv.of_RefreshItemForRow
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_RefreshItemForRow(long)
|
Name
|
Datatype
|
ll_Item
|
Long
|
public function integer of_RefreshItemForRow (long al_row);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_RefreshItemForRow
//
// Access: public
//
// Arguments:
// al_Row The row in the DataStore whose item is to be
// refreshed.
//
// Returns: Integer
// Returns 1 if successfull, -1 if an error occurred
//
// Description: Refresh an item in the ListView. Reset all its attributes to the appropriate
// values based on the data in the DataStore.
//
// NOTE: If the value of any of the key columns in the DataStore
// have changed, this function will not work. It will no longer be
// able to find the proper row. In that case, get the row with
// of_GetDataRow BEFORE it is changed and call
// of_RefreshItem(al_Item, ai_Row)
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_Item
// Get the corresponding item in the ListView
ll_Item = of_GetItemForRow(al_Row)
If ll_Item = -1 Then Return -1
// Refresh the item
Return of_RefreshItem(ll_Item, al_Row)
end function