Rank: Administration
Groups: Administrators, Beta Testers Posts: 3,097 Location: Auburn, GA Thanks: 998 times Was thanked: 497 time(s) in 412 post(s)
|
Ok, here's the expression:
ICASE(GETUSERFIELD("CHANNEL:")=="D001", 4.0, GETUSERFIELD("CHANNEL:")=="D002", 4.1, GETUSERFIELD("CHANNEL:")=="D003", 4.3, 0)
The extra spaces are just for clarity.
However, there are problems with using this feature to do this. Note from HELP in Log/Setup/Defaults that these defaults are set when you add a new QSO, enter the call, then exit from the call field with the {tab} key. The problem is that if you log the call first, the CHANNEL user-defined field will not be filled in yet.
A workaround is to return to the call field after entering the channel, and pressing {Tab}. You could also turn CARRY FORWARD FROM PREVIOUS QSO for the CHANNEL field. That way if you aren't QSYing a lot, the CHANNEL from the last QSO will be entered by default. Set this up by clicking the waiter man button on the log form.
The ideal thing to do is to interface your radio, and use the DEFAULTS feature to fill in the channel. There is an example of doing almost exactly this in Help for that tab. The example is filling out a network name. You would choose CHANNEL for the TO field. The expression would be
ICASE(BETWEEN(FREQ, 3.99, 4.01), "D001", BETWEEN(FREQ, 4.09, 4.11), "D002", BETWEEN(FREQ, 4.19, 4.21), "D003", "")
I didn't test this, but you get the idea. I left a little wiggle room for the freq.
Let me know if any questions.
Tnx & 73,
Dennis WN4AZY
|