home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 18 
 Richard Webb to all 
 from the hints and kinks department 
 21 Apr 11 15:00:58 
 
HI folks,

I've been ahving so much fun!!!

Revamping my ham radio net control logger a little bit,
easier menu driven interface for not regular users, and for
Kathy without having to write separate programs for both of
us.

ONe of the legal requirements is that one identifies his/her ham station at
ten minute intervals or more frequent here in the U.S>

so, various menu items plug the minutes past the hour in a
file which we can then plug into an environment variable
using HOrst's nset.

So I'm using TImo's function evaluator to subtract the
number %ID% captured from this file from current minutes
past the hour (stuffed into another env var) and think this
should be real simple.  Just have the next line in the batch do

fn /b %COUNTER%-%ID% >> checknum.txt

tHen of course we remove the decimal point from checknum.txt and replace it
with white space, so we can
stuff that whole number into another env var for ifnumber to chew on compared
against the value of %LEGAL% which will of
course be ten.

But, Timo's function evaluator was giving me weird numbers,
almost like it couldn't add or subtract anymore.

So, we played with it in test mode for awhile, then
discovered that if we express the equation fully algebraic
as in

fn /b %COUNTER%+-%ID% >> checknum.txt

we suddenly get the right answer.



Fun with my morning coffee.




Regards,
           Richard
--- timEd 1.10.y2k+
 * Origin:  (1:116/901)

<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca