2.1.21 IsModified


Description

IsModified property sets or clears modified flag for currently open Origin project without saving it.

Syntax

VB: Property Get/Let IsModified As Boolean
C++: bool IsModified
C#: bool IsModified

Remark

Examples

VBA

Dim oApp As Origin.ApplicationSI
Set oApp = GetObject("", "Origin.ApplicationSI")
Dim bb As Boolean
bb = oApp.Load("c:\\project1")
bb = oApp.Reset() 'change current project
bb = oApp.IsModified 'True
oApp.IsModified = False 'clear modified flag
bb = oApp.Load("c:\\project1") 'restore to saved version - Save changes dialog absent

Python

import OriginExt as O
app = O.Application(); app.Visible = app.MAINWND_SHOW
filePath = app.Path(app.APPPATH_PROGRAM) + "Samples\\Curve Fitting\\" + "2D Bin and Fit.opj"
app.Load(filePath)
print("Before Reset, IsModified = ", app.IsModified)
app.Reset()
print("After Reset, IsModified = ", app.IsModified)

Version Information

8.0SR2

See Also

Load| Save