Skip to main content
1-Visitor
May 27, 2016
Question

How to get the current worksheet error state?

  • May 27, 2016
  • 1 reply
  • 1150 views

In an external automation application  for Mathcad Prime 3.1 I need the information about errors of a worksheet after the modification event was raised (SDK). How can I get this?

1 reply

1-Visitor
May 27, 2016

I've never used it, but Mathcad 15's API appears to provide the ability to access error messages.  I don't have Prime 3.1 installed on my current computer to check.

ErrorMsg Property

The ErrorMsg property gets the current calculation error message for the region.

Syntax

bstr = objMC.ErrorMsg

Where:

bstr = A string containing the current calculation error message for the specified region. If there is no error, an empty string is returned.

objMC = A Mathcad worksheet region.