|
pfc_undo
|
|
Full name
|
pfc_n_cst_lvsrv_datasource.pfc_undo
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_undo()
|
Name
|
Datatype
|
ls_undotype
|
string
|
event pfc_Undo;call super::pfc_Undo;//////////////////////////////////////////////////////////////////////////////
// Event: pfc_Undo
// Arguments: None
// Returns: integer
// 1 = success;
// 0 = nothing to undo
// -1 = error
// Description: Restore the last listview change.
//////////////////////////////////////////////////////////////////////////////
// Rev. History: Version
// 6.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.
//////////////////////////////////////////////////////////////////////////////
string ls_undotype
// do not undo if undo is not set
if not ib_Undo then return -1
if of_CanUndo(ls_undotype) then
choose case ls_UndoType
case UNDO_DELETE
return this.event pfc_UndoDelete()
case UNDO_INSERT
return this.event pfc_UndoInsert()
case UNDO_EDIT
return this.event pfc_UndoEdit()
end choose
end if
return 0
end event