I've developed a UI technique for creating highly-configurable apps that utilizes a lot of Text Ring controls to allow the user to select from a list of channels or labels or ... I track the lists of channels, labels, alarms, etc. as the app is configured, and load the Text Rings with them so that the end user does not have to ensure absolutely correct spelling. Then I convert the text ring to a string value before storing the configuration. Since the list of channels is so dynamic, it is much safer to save each selected channel as a string than as a position within a list.
The trick is that when I convert from the Text Ring to the String, I have to use the value of the Text Ring to index an array of all the strings. Often I keep that array in a handy place, like a shift register, but at times, it is more convenient to read the Strings[] property of the Text Ring itself. What would be even more convenient would be if there were a "Current String" property that returned the String value associated with the current Text Ring (integer) value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.