现有一个TIME控件  设置检测间隔为一秒 
若发现有A>B则提示 A>B 
现想 提示一次 就不再发送相同的提示 再次检测 发现不同的 如发现C>D 则提示 请问各位大大 怎么实现

解决方案 »

  1.   


    timer事件中写
    if 检测到 then
    begin
      try
        timer.enable := False;//暂停提示
         提示
      finally
        timer.enable := True;//打开提示
      end;
    end;
      

  2.   


    在外面定义一个变量
     isShow: Boolean;Timer1 里写这样的
    if not isShow then
    begin
      isShow := True;
      ShowMessage('A>B');
    end;
      

  3.   

    if 检测到 then 这个检测到 是指什么啊 BDMH大大 是指检测到已经提示过 还是指检测到应该提示呢