All,<br><br>I want to use a section of code something like this. This already works, but is there a better way to do it? What it need to do is allow the user to see and edit a VHF or UHF frequency within the allowable frequency range. It would be nice if it could be displayed and edited similar to a cell in the spreadsheet view.<br>
<br> _vfoa = self._memobj.vfoa.freqa<br> rs = RadioSetting("vfoa.freqa", "VFO A Frequency",<br> RadioSettingValueInteger(0, 9, _vfoa[0]),<br> RadioSettingValueInteger(0, 9, _vfoa[1]),<br>
RadioSettingValueInteger(0, 9, _vfoa[2]),<br> RadioSettingValueInteger(0, 9, _vfoa[3]),<br> RadioSettingValueInteger(0, 9, _vfoa[4]),<br> RadioSettingValueInteger(0, 9, _vfoa[5]),<br>
RadioSettingValueInteger(0, 9, _vfoa[6]),<br> RadioSettingValueInteger(0, 9, _vfoa[7]))<br> workmode.append(rs)<br><br>I also want to limit '_vfoa[0]' to a list of 1, 4 and 5. Any suggestions on how to do that?<br>
<br>Also, I would want to set another variable, lets call it 'vfoaband', to 0 [meaning VHF] if '_vfoa[0]' = 0 and 1 [meaning UHF] if '_vfoa[0]' = 4 or 5.<br><br>Thanks in advance,<br>Jim Unroe<br><br>