Param

Method

Event

 

 

IsDirty

Checks if the content of the current document has been changed.

 

Syntax

    HRESULT IsDirty(); 

Parameters

None

 

Return Values

TRUE

Content has been changed

FALSE

Content has not changed

 

Remarks

For this method to be called successfully, it must be called after the Main class is called and the editor is loaded.

 

Sample Code

VBScript

var object = new NamoSE("test");
object.editorStart();

Var info = object.IsDirty();
if(info)
{
 alert("The document has been modified."); 
}
else
{
 alert("The document has not been modified.");
}