I'm making a simple macro that puts a frame up and displays a handout. The handout images are stored in a table, like so:
Currently in my macro, I put the line
for use in the following line:
Code: Select all
[H: status=input("image|"+handOut+"|Pick a handout to display|LIST|SELECT=0", ....
(selecting "range" in the drop down outputs 0, selecting "damage" outputs 1, and so on) which then concludes with
Code: Select all
<img src='[r: tblImage("hand",image,picSize)]'></img>
It gets the job done well enough, but if I want a new handout, I have to stick its name onto the end of that first line for it to show up as a valid input, in addition to adding it to the table,
and make sure it correlates to the appropriate range.
Is there a way I can have the input function use the list of values from the table automatically, so I don't have to edit the macro each time I add something new to the table?