Example
The following example determines whether the specified formula is valid.
C++
// Check if the formula is valid
if(m_Spread.IsFormulaValid(s)==False)
MessageBox(NULL, s, "Invalid Formula", MB_OK);
Visual Basic
' Check if the formula is valid
If fpSpread1.IsFormulaValid(s) = False Then
MsgBox s, 48, "Invalid Formula"
End If