Skip to main content
4-Participant
March 29, 2022
Solved

old code, new worksheet

  • March 29, 2022
  • 2 replies
  • 1419 views

About 10 years I wrote some code that used a couple of lists in a mathcad sheet.  I tried to cut and paste for my new task but it's all just gibberish to me now and my code doesn't work.  Can someone help me figure out how to do this.  The attached sheet has the code and hopefully my intent is clear enough to start with.

Best answer by Werner_E

The script in the list box component contained a couple of errors. Can't imagine that it ever could work OK.

The attached file should help

 

Main problem was that the branch statement with the output was not inside its subroutine "ListBoxEvent_Exec" which was completely missing.
And then there were some typos ("putputs(7)" instead of "outputs(7)").

2 replies

Werner_E25-Diamond IAnswer
25-Diamond I
March 30, 2022

The script in the list box component contained a couple of errors. Can't imagine that it ever could work OK.

The attached file should help

 

Main problem was that the branch statement with the output was not inside its subroutine "ListBoxEvent_Exec" which was completely missing.
And then there were some typos ("putputs(7)" instead of "outputs(7)").

jpyland4-ParticipantAuthor
4-Participant
April 6, 2022

Yes that works nicely. Thanks you.