Skip to main content
1-Visitor
January 23, 2012
Solved

Mathcad 14 List Box Output

  • January 23, 2012
  • 2 replies
  • 5715 views

Hello all,

I am relatively new to Mathcad 14. The problem I am having is with List Boxes.

In the attached document, you can see two list boxes. The second reads the output from the first and displays a different result based on what is read in from the first list box. The problem is that the outputs in list box 2 accumulate, as opposed to being replaced. I have tried solving this problem using the ResetContent function, but then I was unable to make the selection (it would not stay highlighted).

I would greatly appreciate any help,

Carl

Best answer by AndyWesterman

One method is to add a persistent 'variable' that monitors for a state change as attached

Hope it helps

2 replies

12-Amethyst
January 23, 2012

One method is to add a persistent 'variable' that monitors for a state change as attached

Hope it helps

CarlB1-VisitorAuthor
1-Visitor
January 23, 2012

That's perfect! That's one way I had tried to solve the problem, but couldn't get it working.

Thanks a lot!

19-Tanzanite
January 23, 2012

There's a large selection of example scripted components here: Extra Components.mcd

There isn't one that does exactly what you are looking for, but the dynamically filled listboxes use the same technique Andy shows. If you look through these you might find a lot of example code that will help in the future.