Skip to main content
10-Marble
December 5, 2013
Question

Text as a result

I've done a short programblock, where the result asa text is assigned to a variable.

Simplified like that:

text:="Results er ok."

Now is it possible to just show the result of the variable "text" in the worksheet without showing "text="?

5 replies

Werner_E
25-Diamond I
December 5, 2013

Three possibilities come to mind:

1) put an empty object (e.g. "Insert/Picture") over the part you don't want to see

2) use symbolic evaluation and hide the LHS (you will still see the right arrow or an equal sign, though)

3) use a scripted component to display the text. Here you could also change the fore- and background color of the text depending on the result

I am assuming you are using Mathcad 15 (or below). Otherwise in Prime 2) and 3) will not be available and I am not sure about 1).

Translate
10-Marble
December 5, 2013

Forgot to mention that I am using Mathcad Prime 3.

Translate
24-Ruby IV
December 5, 2013

Andreas Zieritz wrote:

Forgot to mention that I am using Mathcad Prime 3.

Sorry, my tricks only in Mathcad 15.

Translate
24-Ruby IV
December 5, 2013

Andreas Zieritz wrote:

I've done a short programblock, where the result asa text is assigned to a variable.

Simplified like that:

text:="Results er ok."

Now is it possible to just show the result of the variable "text" in the worksheet without showing "text="?

I insert different pictures as a text by the changing of languages on my Mathcad server.

One example.

http://twtmas.mpei.ac.ru/mas/Worksheets/Chem/Surface_Tension/isotherm_surf_ten_ERU_new.mcd

langs.png

And I do it when I want to have comments - all is ok or not ok - with colors

Translate