of_accepttext


pfcmain.pbl   >   pfc_u_base   >   of_accepttext   

Full name pfc_u_base.of_accepttext
Access public
Extend of integer
Return value integer
Prototype public function integer of_accepttext(boolean)

Name Datatype
No Data

Name Datatype
lpo_updatearray powerobject[]

public function integer of_accepttext (boolean ab_focusonerror);//////////////////////////////////////////////////////////////////////////////
//
//	Function:
//	of_AcceptText
//
//	Access:  		public
//
//	Arguments:  
//	ab_focusonerror	States if focus should be set in case of error.
//
//	Returns:  Integer
//	1 Success
// 0 No Action 
//	-1 Failure
//	
//	Description:
//	Perform an accepttext and set focus when requested.
//
// Note:
//	Specific acceptext logic should be coded in descendant pfc_AcceptText event.
//	Part of the SelfUpdatingObject(SUO) API.
//	No Action will be executed, If the object is not Updateable.
//
//////////////////////////////////////////////////////////////////////////////
//	
//	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.
//
//////////////////////////////////////////////////////////////////////////////

powerobject lpo_updatearray[]

// Make sure there is something to take action on.
If Not of_IsUpdateable() Then Return NO_ACTION

// Determine the appropriate array.
If UpperBound(ipo_updateobjects) > 0 Then
	lpo_updatearray = ipo_updateobjects
Else
	lpo_updatearray = This.Control		
End If

Return this.Event pfc_AcceptText(lpo_updatearray, ab_focusonerror)

end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.upperbound systemfunctions
pfc_u_base.of_isupdateable pfc_u_base
pfc_u_base.pfc_accepttext pfc_u_base

     
Full name
No Data

     
Name Scope
No Data