到主窗口脚本能运行,切换窗体就不运行 点击:298 | 回复:0



lxcndz

    
  • 精华:0帖
  • 求助:1帖
  • 帖子:1帖 | 8回
  • 年度积分:0
  • 历史总积分:4
  • 注册:2013年12月11日
发表于:2016-04-02 17:36:00
楼主

if i<>$Second then   

   i=$Second 

   if pumpcheckwait>=台数 then   

     pumpcheckwait=1 

   else  

    pumpcheckwait=pumpchecking+1 

   endif 

  if autoflag=1 then   

     pumpcheckon=pumpchecking 

   else   pumpcheckon=0 

   endif 

      if autoflag=1 then 

        if autoseconddec>0 then      

         autoseconddec=autoseconddec-1     

        else     

         autoseconddec=59      

        if autominutedec > 0 then        

         autominutedec=autominutedec-1      

         else        

         autominutedec=59        

         if autohourdec >0 then          

           autohourdec=autohourdec-1        

         else  

          autoflag=2        

        endif      

      endif   

     endif 

   else   

     if 巡检周期>0 then      

       autohourdec=巡检周期-1      

       autominutedec=59      

       autoseconddec=59    

     else      

       autohourdec=0      

       autominutedec=0      

       autoseconddec=0   

     endif 

 endif 

endif

我可把这段代码复制到个窗体的循环脚本下运行,能不这样干

有什么好的方法就一脚本,所有窗体下都运行?




热门招聘
相关主题

官方公众号

智造工程师