|
of_setfind
|
|
Full name
|
pfc_u_rte.of_setfind
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setfind(boolean)
|
public function integer of_setfind (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
// Event: of_SetSearch
//
// (Arguments: boolean
// TRUE - Start (create) the service
// FALSE - Stop (destroy ) the service
//
// (Returns: Integer)
//
// Description: Starts or stops the DataWindow Search services.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.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.
//
//////////////////////////////////////////////////////////////////////////////
//Check arguments
If IsNull(ab_switch) Then
Return -1
End If
IF ab_Switch THEN
IF IsNull(inv_find) Or Not IsValid (inv_find) THEN
inv_find = Create n_cst_rtefind
inv_find.dynamic of_SetRequestor ( this )
Return 1
END IF
ELSE
IF IsValid (inv_find) THEN
Destroy inv_find
Return 1
END IF
END IF
Return 0
end function