2013-03-08 14 views
1

的實用插件在LiveCode IDE中運行需要每隔一段時間完成數據庫更新任務。任務不會被用戶中斷 - 誰可能正在另一個堆棧上工作,這一點很重要。有沒有辦法可以禁用標準ctrl +句點,並避免任務在循環中途停下來?LiveCode IDE工具需要完成的任務不間斷

回答

5

您可以使用全局的 'allowInterrupts' 屬性這一點:

 
    set the allowInterrupts to false 
    ... task you don't want interrupted ... 
    set the allowInterrupts to true 

雖然此屬性爲false,按Ctrl-期間不會有任何效果。

+0

謝謝 - 工作:) – splash21 2013-03-08 15:19:11

相關問題