|
of_getitemforrow
|
|
Full name
|
pfc_u_lv.of_getitemforrow
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_getitemforrow(long)
|
Name
|
Datatype
|
ll_Cnt
|
Long
|
llvi_Item
|
ListViewItem
|
ls_Key
|
String
|
public function long of_getitemforrow (long al_row);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_GetItemForRow
//
// Access: public
//
// Arguments:
// al_Row The row in the DataStore that the item points to.
//
// Returns: Long
// The handle of the ListView item that points to that row, 0 if the item
// was not found, or -1 if an error occurrs
//
// Description: Return the ListView item that points to a particular row in the source 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.
//
//////////////////////////////////////////////////////////////////////////////
Long ll_Cnt
String ls_Key
ListViewItem llvi_Item
// Get the generated key for the row
ls_Key = ids_Source.Object.pfc_lvi_key[al_Row]
If ls_Key = "" Then Return -1
// Find the item
For ll_Cnt = 1 To il_LastHandle
If GetItem(ll_Cnt, llvi_Item) = 1 Then
If llvi_Item.Data = ls_Key Then Return ll_Cnt
End If
Next
Return 0
end function
Name
|
Owner
|
listview.getitem |
listview
|