[Logic] How to create exprsn to flag a new grid square?

Bill VanAlstyne [email protected]
2004年1月26日 17:55:20 -0700


Arthur Tan wrote:
> Can't you just turn on forms->progress 1 (or progress 2) and set the
> award to "grid?"

Yeah! Now that I try it, I reckon you could. I hadn't played with this form
much, and I can see it's useful for that. Of course, it's one more window I have
to keep track of, and even with a 21" monitor, I'm kind of running out of screen
real estate.
However...
> Or are you looking to do something else?

Yeah! I am, actually. I figured I could use the custom expression as part of my
QSL printing report, which I've extensively customized already. Mostly just for
fun and to learn how to do it, I'm having it print on each card various
"remarks" that are concatenated automatically, using expressions, from
information derived from the log.
As an example, here's one expression I've created that prints variations of
"Thanks for the QSO", "Thanks for the contest QSO", "Thanks for the QSO, Bob",
etc.:
"Thanks for the "+iif(NOT EMPTY(contest_id),"contest
","")+"QSO"+iif(qsl_rcvd='F'," and QSL","")+iif(NOT EMPTY(name),",
"+TRIM(UPPER(LEFT(name,1))+LOWER(SUBSTR(name,2))),"")+"."
The nested mess in the last part of the expression is to get the operator's name
from all-upper-case to capitalized lower-case. Again, just wanted to figure out
how to do it. It works. :-) Though there may be an easier way. I'm just
starting to learn FoxPro.
What I want it to be able to do now is to conclude that the QSO being QSLed is a
new (or unconfirmed) grid, and write something to that effect in the remarks. I
figure one would have to do a LOOKUP in -- some form or other -- comparing the
cumulative GRID information recorded therein to the grid of the station being
QSLed. But I'm not quite sure how to do that.
Anyway, I figured once I had the expression built, I could also use it as part
of a custom field on the MAIN log screen. To make matters simpler, I queried the
list about this latter function, which seemed easier to describe. :-)
Bill / W5WVO
>> 73, Art AB4RL
> _______________________________________________
> LOGic mailing list
> [email protected]
> http://mailman.qth.net/mailman/listinfo/logic


AltStyle によって変換されたページ (->オリジナル) /