Example
The following example determines whether the cell at column 10, row 20 is flagged, and displays an error message if the cell is not flagged.
C++
if(m_Spread.SetCellDirtyFlag(10, 20, True)==False
MessageBox(NULL,"Can't set dirty flag","Error",MB_OK);
Visual Basic
If fpSpread1.SetCellDirtyFlag(10, 20, True) = False Then
MsgBox "Can't set dirty flag", 48, "Error"
End If