cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Translate the entire conversation x

Copy paste in combo box

BT_10780541
6-Contributor

Copy paste in combo box

How do I copy paste large data in first column of combo box? Rest columns I am able to copy paste the data but first column how to do that?

BT_10780541_0-1749456726940.png

 

3 REPLIES 3

Hello,

 

Is this doable in Mathcad Prime? Any comments would be helpful

Hello @BT_10780541

 

It looks like you have a response from our community champion. If it helped you solve your question, please mark the reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.

Werner_E
25-Diamond I
(To:BT_10780541)

The expressions in the very first column are used for display when a user selects an item from the combo box. The second column is the first data column.

If the very first column is empty, the values in the first data column are used for display. Often this suffices.

 

If it doesn't because you want text to be displayed and numerical values returned, you may misuse the first data column for the text labels and the second data column for the actual data returned. Because the combo box would return now a vector of values, you will have to select the actual data value from that vector.

Here an example.

Instead of

Werner_E_0-1749669226215.png

you may use

Werner_E_2-1749669282069.png

The index 1 used is only valid if ORIGIN is at its default value 0. You may use "ORIGIN+1" instead of "1" to be on the safe side.

The first data column (a,b,c) was created using copy& paste with the vector of strings you see in the picture.

 

I have no idea why copy & paste is not allowed for the very first column of labels, but then copy & paste is broken in other ways, too in Prime.

 

You might also consider using a scripted listbox instead of the combobox

 

 

 

Announcements


Top Tags