|
pfc_propertyapply
|
|
Full name
|
pfc_u_tabpg_dwproperty_srvdropdownsearch.pfc_propertyapply
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event pfc_propertyapply()
|
Name
|
Datatype
|
li_cnt
|
integer
|
li_index
|
integer
|
li_rc
|
integer
|
li_upper
|
integer
|
ls_column
|
string
|
event pfc_propertyapply;call super::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_upper
integer li_cnt
integer li_rc
integer li_index
string ls_column
// Validate references.
If IsNull(idw_requestor) or Not IsValid(idw_requestor) Then
Return -1
End If
If IsNull(idw_requestor.inv_dropdownsearch) or Not IsValid(idw_requestor.inv_dropdownsearch) Then
Return -1
End If
// -- Register or Unregister Columns. --
// Get the number of items in the ListBox.
li_upper = lb_registeredcolumns.TotalItems()
For li_cnt = 1 to li_upper
// Get the column name.
ls_column = lb_registeredcolumns.text(li_cnt)
// Is the column name selected?
If lb_registeredcolumns.State(li_cnt) = 1 THEN
// Want this current column to be registered.
If Not idw_requestor.inv_dropdownsearch.of_IsRegistered(ls_column) Then
li_rc = idw_requestor.inv_dropdownsearch.of_Register(ls_column)
End If
Else
// Want this current column to Not be registed.
If idw_requestor.inv_dropdownsearch.of_IsRegistered(ls_column) Then
li_rc = idw_requestor.inv_dropdownsearch.of_UnRegister(ls_column)
End If
End If
Next
Return 1
end event