AppStudio 7.2 adds a useful property to the Select control: value.
It’s a hidden field which keeps a value. This could be an index or a key to a database which lets you look up a record easily when a Select choice is made.
Using this can greatly simplify your code.
To make this feature work, we had to change the Select control. You may need to change your code!
- Change Select.value to Select.text in your code: So the statements would make sense we had to rename .value to .text.
- Check any case where you’re using .addItem. If you have just a single argument, you do not need to do anything. If you have multiple arguments on addItem, add a new value argument as the second parameter.
Example of using Select.value