of_getdatarow


pfcmain.pbl   >   pfc_u_lv   >   of_getdatarow   

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

Name Datatype
No Data

Name Datatype
ll_Row Long
llvi_Item ListViewItem

public function integer of_getdatarow (long al_item, ref n_ds ads_source, ref long al_row);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_GetDataRow
//
//	Access:  public
//
//	Arguments:
//	al_Item						The handle to the ListView item for which data is desired.
//	ads_Source				The handle to the DataStore (of type n_ds) for the Listview.
//									Passed by reference.
//	al_Row						The row in the DataStore that the item points to.  Passed by
//									reference.
//
//	Returns:		Integer
//					1	- the item's data was found
//					-1	- the item or row was not found
//
//	Description:	Return the DataStore and row a particular item in the ListView points
//						to.  This allows the user to update this row any way they wish.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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
ListViewItem	llvi_Item

If GetItem(al_Item, llvi_Item) = -1 Then Return -1

ads_Source = ids_Source

ll_Row = ads_Source.Find("pfc_lvi_key = '" + String(llvi_Item.Data) + "'", &
										1, ads_Source.RowCount())

If ll_Row <= 0 Then
	Return -1
Else
	al_Row = ll_Row
	Return 1
End If

end function

     
Name Owner
pfc_u_lv.of_RefreshItem pfc_u_lv
pfc_u_lv.endlabeledit pfc_u_lv

     
Name Owner
listview.getitem listview
datastore.find datastore
datastore.rowcount datastore
systemfunctions.string systemfunctions

     
Full name
No Data

     
Name Scope
No Data