Page 1 of 1

REDO Edit macro to undo the undo action

PostPosted: Wed Sep 18, 2013 8:43 pm
by steinef
Hi all

I am trying to write an edit macro which allows users to perform a redo action.

Lets say I used the undo command twice instead of just once and I want to redo the command which was just undone I'd like to have a macro which is able to perform that redo action.
Unfortunately neither the undo command nor the retrieve command are valid ISREDIT commands and I don't have any idea where to begin right now

So thanks a million in advance for any constructive ideas

Re: REDO Edit macro to undo the undo action

PostPosted: Wed Sep 18, 2013 9:46 pm
by enrico-sorichetti
So thanks a million in advance for any constructive ideas


since UNDO has the prerequisite of RECOVERY ON You might try to process Yourself the dataset used for recovery,

Re: REDO Edit macro to undo the undo action

PostPosted: Thu Sep 19, 2013 2:06 am
by Pedro
I think you need to intercept the undo and save the current file somewhere. And then perform the actual undo.

On REDO, just issue compare command against the saved version. The user can issue MD commands to incorporate the changes from the saved file.