Dear members!
I have a question on a following code.

There is a desire to do check - whether quotations on the computer 
and if they are not present arrive - to send a signal on e-mail.

As it can be made - if current time of the computer (Now (4)) differs 
from bar time (TimeNum ()) for 20 minutes - the signal comes.



Code:
CurTime = int (Now (4)/100);//current time without seconds
RabVremya=CurTime> = 1030 AND CurTime <= 2355;//working hours
DataAlert=IIf (RabVremya AND (CurTime - int (TimeNum ())/100> 20), 
1,0);
AlertIf (DataAlert, "EMAIL", "Alarm! Check up" +Name () + "! Data are 
not present!", type=0);



In the theory like should work :)
But in practice when quotations are I all the same each 20 minutes I 
receive the message, that data are not present!

Prompt, as it can be corrected!

Thanks!

P.S. Excuse, if if errors - transfer is executed by mechanical system.

Reply via email to