of_RefreshItem


pfcmain.pbl   >   pfc_u_lv   >   of_RefreshItem   

Full name pfc_u_lv.of_RefreshItem
Access public
Extend of integer
Return value integer
Prototype public function integer of_RefreshItem(long,long)

Name Datatype
No Data

Name Datatype
llvi_Item ListViewItem

public function integer of_RefreshItem (long al_Item, long al_Row);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_RefreshItem
//
//	Access:  public
//
//	Arguments:
//	al_Item							The handle of the item to be refreshed.
//	al_Row							The row in the DataStore to use for the item's attributes.
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

ListViewItem	llvi_Item

// Get the item
If GetItem(al_Item, llvi_Item) = -1 Then Return -1

// Set the item's attributes
If of_SetAttributes(al_Row, llvi_Item) = -1 Then Return -1

// Refresh the item
Return SetItem(al_Item, llvi_Item)

end function

     
Name Owner
pfc_u_lv.of_RefreshItem pfc_u_lv
pfc_u_lv.of_RefreshItemForRow pfc_u_lv

     
Name Owner
listview.getitem listview
listview.setitem listview
pfc_u_lv.of_setattributes pfc_u_lv

     
Full name
No Data

     
Name Scope
No Data