pfc_accepttext


pfcmain.pbl   >   pfc_u_dw   >   pfc_accepttext   

Full name pfc_u_dw.pfc_accepttext
Access public
Extend of integer
Return value integer
Prototype event integer pfc_accepttext(boolean)

Name Datatype
No Data

Name Datatype
li_rc integer

event pfc_accepttext;//////////////////////////////////////////////////////////////////////////////
//	Event:			pfc_accepttext
//	Arguments:		ab_focusonerror Boolean which states if focus should be set in case of error.
//	Returns:			Integer - 1 if it succeeds and -1 if an error occurs
//	Description:	Perform an accepttext and set focus when requested.
//////////////////////////////////////////////////////////////////////////////
//	Rev. History	Version
//						6.0   Initial version
//////////////////////////////////////////////////////////////////////////////
//	Copyright © 1996-1999 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

// Do not perform AcceptText on Datawidows found on uncreated tab pages.
if this.RowCount() + this.FilteredCount() + &
	this.ModifiedCount() + this.DeletedCount() <= 0 then
	return SUCCESS
end if
	
// Perform AcceptText, check rc
li_rc = this.AcceptText()
if li_rc < 0 then 
	if ab_FocusOnError then this.SetFocus()
	return FAILURE
end if

return SUCCESS
end event

     
Name Owner
pfc_n_cst_dwsrv_linkage.of_accepttext pfc_n_cst_dwsrv_linkage
pfc_u_dw.of_AcceptText pfc_u_dw

     
Name Owner
dragobject.setfocus dragobject
datawindow.accepttext datawindow
datawindow.deletedcount datawindow
datawindow.filteredcount datawindow
datawindow.modifiedcount datawindow
datawindow.rowcount datawindow

     
Full name
No Data

     
Name Scope
No Data