endlabeledit


pfcmain.pbl   >   pfc_u_tvs   >   endlabeledit   

Full name pfc_u_tvs.endlabeledit
Access public
Extend of
Return value
Prototype event endlabeledit()

Name Datatype
No Data

Name Datatype
li_rc integer

event endlabeledit;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  EndLabelEdit
//
//	Description:	Change the label column in the appropriate DataStore to
//						be the new label 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.  If the label column is also part
//						of the key, or is used as a retrieval argument for any of its
//						children, this item should be refreshed with of_RefreshItem.
//
//////////////////////////////////////////////////////////////////////////////
//	
//	Revision History
//
//	Version
//	6.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.
//
//////////////////////////////////////////////////////////////////////////////
integer	li_rc

if isvalid(inv_levelsource) then
	If inv_levelsource.event pfc_endlabeledit(handle, newtext) <> CONTINUE_ACTION Then
		// prevent new text from becoming the label
		Return 1
	End If
end if
	
// returning 0 makes the label change
Return 0
end event

     
Name Owner
No Data

     
Name Owner
systemfunctions.isvalid systemfunctions
pfc_n_cst_tvsrv_levelsource.pfc_endlabeledit pfc_n_cst_tvsrv_levelsource

     
Full name
No Data

     
Name Scope
No Data