|
of_setbatchmode
|
|
Full name
|
pfc_n_cst_sqlspy.of_setbatchmode
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setbatchmode(boolean)
|
public function integer of_setbatchmode (boolean ab_batchmode);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetBatchmode
//
// Access: public
//
// Arguments:
// ab_batchmode Mode of the service.
//
// Returns: integer
// Returns 1 if it succeeds and -1 if an error occurs.
//
// Description: Sets the mode of the SQLSpy service.
// Notifies the visual part of SQLSpy for it to correctly
// reflect the appropriate mode.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
If IsNull(ab_batchmode) Then
Return -1
End If
//Set the BatchMode
ib_batchmode = ab_batchmode
// Make sure the Visual part of SQLSpy reflects the BatchMode
If IsValid(iw_SQLSpy) Then
iw_SQLSpy.of_UpdateBatchMode()
End If
Return 1
end function