Error Messages/40697

< Error Messages
Revision as of 20:35, 8 February 2019 by Lchrisman (talk | contribs) (Created page with "== Example Error == :You have used the Evaluate() function to evaluate Button Run_simulation. You cannot use Evaluate() to evaluate an Object of type Button. == Desc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example Error

You have used the Evaluate() function to evaluate Button Run_simulation. You cannot use Evaluate() to evaluate an Object of type Button.

Description

Since a Button (or the indicated object type in your case) doesn't return a computed value, it isn't an expression that Evaluate() supports. The EvaluateScript() function can "press" a button. But this should only be done from an action initiated from a button OnClick or other user-event handler in the button you want to run has side-effects like changing parts of the model.

See Also

Comments


You are not allowed to post comments.