|
of_SetRowSelect
|
|
Full name
|
pfc_u_dw.of_SetRowSelect
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_SetRowSelect(boolean)
|
public function integer of_SetRowSelect (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
// Public Function: of_SetRowSelect
// Arguments: boolean
// true - Start (create) the service
// false - Stop (destroy ) the service
// Returns: Integer - 1 if Successful operation, 0 = No action taken and -1 if an error occured
// 1 - Successful operation.
// 0 - No action taken.
// -1 - An error was encountered.
// Description: Starts or stops the Row Selection Services. This service
// provides for single, multi and extended row selection.
//////////////////////////////////////////////////////////////////////////////
// Rev. History Version
// 5.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.
//////////////////////////////////////////////////////////////////////////////
// Check arguments
if IsNull(ab_switch) then return FAILURE
if ab_Switch then
if IsNull(inv_RowSelect) or not IsValid (inv_RowSelect) then
inv_RowSelect = Create n_cst_dwsrv_rowselection
inv_RowSelect.of_SetRequestor ( this )
return SUCCESS
end if
else
if IsValid (inv_RowSelect) then
Destroy inv_RowSelect
return SUCCESS
end if
end if
return NO_ACTION
end function