PRevert

Restores the most recently saved version of the publication or template, deleting all changes made since the last time it was saved or minisaved.


Command constructor

PRevert(short cKind = 0);
0 to revert to the last-saved version (the default)
1 to revert to the last minisaved version
Saved value same as reverting. Using the Saved value is the same as closing the publication without saving changes from the current session and then reopening the publication; it reverts to the last-saved version.

Minisaved value same as cancelling. Using the minisaved value is the same as canceling the changes made since performing any of the actions that cause an automatic minisave: inserting or deleting a page, changing to a different page, printing, copying, switching between layout view and story editor, using the Clipboard, or changing the page setup of a publication.

No confirmation required by PageMaker. Unlike the menu command, the command version does not display a message asking the user to confirm this action before proceeding.

Example. The following example cancels all changes made since the publication was last minisaved.

PRevert(1);


See also

The PMiniSave, PSave, and PSaveAs commands

Adobe PageMaker 6.5 Help > Commands > File > Revert


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support