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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Listbox

ptc-4260912
1-Newbie

Listbox

When the selections inside a listbox are text. Mathcad will assign the row number of the selected item in the list to the variable . is it possibel to have the variable = the text of the selected item in the list? Thanks !!!!!!!!

1 ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:ptc-4260912)

See the attached example.

View solution in original post

6 REPLIES 6

just to clarify my question above:

if The listbox Code:= ASD

LRFD

where ASD are the selection in the listbox, when i select LRFD, then Code=2

is it possible to have Code="LRFD" rather than the row number?

becuase all my condiional "if" statments are based on the condition of whether "Code= "ASD" or "LRFD"?

Thanks!

i am attaching a mathcadsheet to clarify my questions above. Does the script for the listbox need to be changed to be able to accomplish it?

RichardJ
19-Tanzanite
(To:ptc-4260912)

See the attached example.

Great. Thanks alot Richard!

Great. Thanks alot Richard!

Great Thanks Richard!

if i would like to create a listbox for the variable "Beam" to have all the beam sizes in column "C" of the attached

excel spreadsheet down to row 275. i will have the excel sheet in C:\ Database. how would you do it? Thanks!!!

Top Tags