3.2.21 IsModified


Description

Test if the active project has been modified since the last saving or loading.

Syntax

IsModified()

Parameters

Return

True if the active project has been modified else False.

Examples

EX1

# For this example to run, create a project, save it, and then modify it
# (for example by modifying the value in a worksheet cell)

import PyOrigin
if(PyOrigin.IsModified()):
    print('Project has been modified')
else:
    print('Project has NOT been modified')
# Now save the project:
PyOrigin.Save('D:\\test.opj')
# Now it must be NOT modifed because we saved it above.
if(PyOrigin.IsModified()):
    print('Project has been modified')
else:
    print('Project has NOT been modified')

See Also

SetModified