pfc_propertyapply


pfcutil.pbl   >   pfc_u_tabpg_dwproperty_srvrowselection   >   pfc_propertyapply   

Full name pfc_u_tabpg_dwproperty_srvrowselection.pfc_propertyapply
Access public
Extend of
Return value
Prototype event pfc_propertyapply()

Name Datatype
No Data

Name Datatype
lb_current boolean
lb_desired boolean
li_index integer
li_rc integer
li_stylecurrent integer
li_styledesired integer

event pfc_propertyapply;//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		pfc_PropertyApply
//
//	Access:    		Public
//
//	Arguments:  	None
//
//	Returns:   		Integer
//   1 if it succeeds.
//	 -1 if an error occurs.
//
//	Description:  		
//	 Apply the requested changes.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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
integer	li_stylecurrent, li_styledesired
integer	li_index
boolean	lb_current, lb_desired

// Validate references.
If IsNull(idw_requestor) or Not IsValid(idw_requestor) Then
	Return -1
End If
If IsNull(idw_requestor.inv_rowselect) or Not IsValid(idw_requestor.inv_rowselect) Then
	Return -1
End If

// -- Style. --
li_stylecurrent = idw_requestor.inv_rowselect.of_GetStyle()
li_styledesired = ii_style - 1
// If the desired value differs from the current value.
If li_styledesired >= 0 And li_stylecurrent <> li_styledesired Then
	li_rc = idw_requestor.inv_rowselect.of_SetStyle(li_styledesired)
End If

// -- Keyboard. --
lb_current = idw_requestor.inv_rowselect.of_IsKeyBoard()
lb_desired = cbx_keyboard.Checked
// If the desired value differs from the current value.
If  lb_current<> lb_desired Then
	li_rc = idw_requestor.inv_rowselect.of_SetKeyBoard(lb_desired)
End If

Return 1

end event

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_dwsrv_rowselection.of_setstyle pfc_n_cst_dwsrv_rowselection
pfc_n_cst_dwsrv_rowselection.of_GetStyle pfc_n_cst_dwsrv_rowselection
pfc_n_cst_dwsrv_rowselection.of_setkeyboard pfc_n_cst_dwsrv_rowselection
pfc_n_cst_dwsrv_rowselection.of_IsKeyboard pfc_n_cst_dwsrv_rowselection

     
Full name
pfc_u_tabpg_dwproperty_srvrowselection

     
Name Scope
No Data