|
endlabeledit
|
|
Full name
|
pfc_u_lv.endlabeledit
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event endlabeledit()
|
Name
|
Datatype
|
lds_DataStore
|
n_ds
|
ll_Row
|
Long
|
llvi_Item
|
ListViewItem
|
event endlabeledit;//////////////////////////////////////////////////////////////////////////////
//
// Event: EndLabelEdit
//
// Description: Change the label column in the appropriate to be the new
// text. This only works if the label column is updatable.
// If a computed column is being used for the label, override
// this script with appropriate code.
//
// NOTE: Update() is NOT called for the DataStore. This is
// left to the user to perform.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_DataStore
ListViewItem llvi_Item
// Make sure the label did change
This.GetItem(index, llvi_Item)
If newlabel = llvi_Item.Label Then Return
// Get the row in the DataStore
If of_GetDataRow(index, lds_DataStore, ll_Row) = -1 Then
Return
End If
// Change the value of the label column
lds_DataStore.SetItem(ll_Row, is_LabelColumn, newlabel)
end event