Unfortunately this method will not work, its a generic routine that must be able to take any ring, so I can't hardwire the cases to known outputs. And, of course, searching the array of Strings[] will just find me a useless index.
My interm solution is this:
1) pick a small, but likely range of possible values for the ring
2) iterate through these values, assigning each one in turn to ring
3) read the RingText property to see if it matches the passed string
4) if it does, then exit. If it doesn't keep looping.
5) if no value produces a matching string, declare defeat (raise an error or produce other output that indicates a match could not be found).
The routine only runs in the UI so I am not too concerned about the time delay this method will i
mpose, but I would greatly appreciate a smoother solution.
Thanks for your suggestions.