Quote:Which command should I give to differentiate x4 with xx4 ????
There is a regular expression engine in .net that I could expose easily enough. But they are complicated.
This would probably be the easiest:
x4:
DXCC = "K " and at(CALL, "4")=2
(the 4 is in the second position.)
xx4:
DXCC = "K " and at(CALL, "4")=3
By the way, you could put these statements all in a .prg file in the UTIL folder to easily update the new QSOs at any time.
use log
replace userfields with tag_edit(userfields, "QOB", "W1") for NOT "QOB:" $ USERFIELDS and DXCC="K " and left(call,2)="W1"
replace userfields with tag_edit(userfields, "QOB", "W2") for NOT "QOB:" $ USERFIELDS and DXCC="K " and left(call,2)="W2"
...
replace userfields with tag_edit(userfields, "QOB", "KP4") for NOT "QOB:" $ USERFIELDS and DXCC="KP4 "
replace userfields with tag_edit(userfields, "QOB", "x4") for NOT "QOB:" $ USERFIELDS and DXCC="K " and at(CALL, "4")=2
replace userfields with tag_edit(userfields, "QOB", "xx4") for NOT "QOB:" $ USERFIELDS and DXCC="K " and at(CALL, "4")=3
...
Note the NOT "QOB:" $ USERFIELDS. It keeps a command from overwriting existing results. That way if you have commands that could possible conflict, put the one that takes precedence first.
Let me know if any questions.
Tnx/73,
DH