Using an array to create a dynamic dropdown list?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-09-05 03:59 PM
Hello,
is it possible to use an array to create a list of dropdown options that can be changed on the fly?
So instead of
values "example" option1, option2... etc
we could have
values "example" option_array[]
which would automatically fill the list with the array values.
Thanks
Windows 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-09-05 04:04 PM
Hi
it is possible. Here a quick preview:
Intel i9-9900K / 64GB RAM / nVidia GeForce RTX 2080 Ti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-09-05 04:10 PM - edited ‎2024-09-05 04:33 PM
What's the type of the parameter? If it's numerical, you could use parameter buffer (put and get). If it's a string, you'll have to use values{2} and create a parameter for the numerical representation of the value, which is a good idea anyways.
Edit: never mind, see @Xandros' solution below.