Top Navigational Bar

Macro To Determine If Document Has Been Modif
DocumentID: 654058
Revision Date: 29-Feb-96 8:29:28 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Solutions: A customer wanted to determine if the document he was working on had been modified. He was using the {SYSTEM}document~&4 command. If Timed Backup was used, this system variable does not work correctly for his purpose. (See also memos WP51_1092, and WP51_4035C in the !WP51 infobase.)

Another mask has been available in all versions of WordPerfect 5.1, but has not been documented. The document system variable can be used to check the value of bit 3, {SYSTEM}Document~&3.
      1-      If the value returned is 0, the document was not modified and Timed Backup has not occurred.
      2-      If the value returned is 1, the document has been modified but Timed Backup has not occurred.
      3-      If the value returned is 2, the document has been modified and Timed Backup has occurred. This also means that no modifications were made to the document since the backup occurred.
      4-      If the value is equal to 3, the document has been modified, Timed Backup has occurred and the document has been modified since the backup.

To check if a document has been modified in any way since the last save, use the following:

{ASSIGN}modified~{SYSTEM}Document~&3~
{IF}{VARIABLE}modified~>0~
{Save}
{END IF}

*This information is given strictly as a troubleshooting option.

Answer:

Details:


Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.