|
of_RefreshItem
|
|
Full name
|
pfc_u_lv.of_RefreshItem
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_RefreshItem(long)
|
Name
|
Datatype
|
lds_Source
|
n_ds
|
ll_Row
|
Long
|
public function integer of_RefreshItem (long al_item);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_RefreshItem
//
// Access: public
//
// Arguments:
// al_Item The handle of the item 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.
//
// This function overrides the real of_RefreshItem to allow the DataStore row
// to be optional.
//
// 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_Row
n_ds lds_Source
// Get the corresponding row in the DataStore
If of_GetDataRow(al_Item, lds_Source, ll_Row) = -1 Then Return -1
// Refresh the item
Return of_RefreshItem(al_Item, ll_Row)
end function