These may be some stupid questions, but new to this environment from an excel background...
I have a number of questions which pertain primarily to how to use data within list / combo-box etc. to be able to extract a number of standard parameters associated with, snippet's below & file attached
Solved! Go to Solution.
Let me start by saying that I have NEVER been a fan of combo boxes. And I'm confused by your sheet. It seems that there are things missing. (You need to have T.Cat defined to have vlookup work.)
That said, What you're showing has drawbacks. For what you've shown, I would build a table. (Tables replaced data arrays from Mathcad 15. If you select data in EXCEL and paste it into Prime, you get a table with blank headers:
One advantage of tables is that they allow units. (Combo boxes will too, but that can get tricky, look for previous posts!) In tables, you type variable names and units, and you get arrays.
And a lookup is just as easy:
@Fred_Kohlhepp thanks for that.
At this stage I want to try different methods to give me the best overall options to use Math cad, as have a lot of problems to resolve if I am to be able to make use of this..
Appreciate your thought's on what you consider to be a better product, & have updated the sheet I had to include your suggestion, & tweaked what I can of the others to make it more useful..
Note that when using (Prime) Tables, you are totally free to add any (combination of) units to any of the column variables. With a Combo box, only simple units are supported (You can e.g. have m, but not m/s); the Combo box is a badly integrated (probably third party) element, just like the Chart component.
For clarity I'd propose:
You can extend the table in horizontal and vertical direction (see the right side of attached sheet), the TableValue and ParameterSet functions require no further change, unless you want to add error trapping.
In addition: you should be very careful when using global definitions (using = ). Consider what happens if you globally define the same variable in different locations of the worksheet...
P.S. Regarding units: Try doing this with the Combobox: