|
of_canundo
|
|
Full name
|
pfc_n_cst_tvsrv_levelsource.of_canundo
|
Access
|
public
|
Extend of
|
boolean
|
Return value
|
boolean
|
Prototype
|
public function boolean of_canundo(ref string)
|
public function boolean of_canundo (ref string as_undotype);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_CanUndo
//
// Access: Public
//
// Arguments:
// as_undotype The type of undo we are performing. Passed by reference
//
// Returns: Boolean
// true = we can undo the last edit/insert/delete
// false = cannot undo the last edit/insert/delete
//
// Description:
// Returns if undo can be performed and the type of undo that can be performed
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
// initialize the undo type
as_undotype = ""
// if undo not on then we cannot undo
If Not ib_undo Then
Return FALSE
End If
// Validate arguments
CHOOSE CASE is_undotype
CASE UNDO_EDIT, UNDO_INSERT, UNDO_DELETE
// Good style.
as_undotype = is_undotype
Return TRUE
END CHOOSE
Return FALSE
end function