Posted: Sun Dec 15, 2024 6:48 pm Post subject: Using user defined symbols in dropdown selection options?
Hey there, I was wondering if there is a way to get the dropdown selection options to read user defined symbols as I am currently dealing with a value that changes often. I have found where the value is generated and have created a lua script to turn the value into a user generated symbol which in this instance I will call Test123.
I then have went into the dropdown list and have tried Test123:Description in the list but it will not pick up my defined user symbol and just shows the raw value instead of my description. I know the user defined symbol is setup correctly as if I go to add an address manually it picks up the value once I type in Test123. It seems pretty straightforward so I am hoping there is a simple way to enable the list to view my user defined symbol which will make dealing with this troublesome value so much easier, any help would be appreciated thanks.
Dropdown list value matching looks to be a simple case-insensitive string comparison. If you need the description to display in the address list, modify the dropdown list using Lua.
If you don't need that, you can run arbitrary Lua code when setting a memory record's value by using parenthesis. e.g. the dropdown line `(math.random(1,10)):rand` would set it to a random value between 1 and 10
Parenthesis can also be used to set the value to the value of another memory record. Put the other memory record's description in parenthesis. _________________
I don't know where I'm going, but I'll figure it out when I get there.
Dropdown list value matching looks to be a simple case-insensitive string comparison. If you need the description to display in the address list, modify the dropdown list using Lua.
If you don't need that, you can run arbitrary Lua code when setting a memory record's value by using parenthesis. e.g. the dropdown line `(math.random(1,10)):rand` would set it to a random value between 1 and 10
Parenthesis can also be used to set the value to the value of another memory record. Put the other memory record's description in parenthesis.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum