ISDBProgress::Terminate

From MediaMonkey Wiki
Revision as of 19:01, 20 April 2013 by Michal.kocarek (talk | contribs) (typo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

CoClass SDBProgress, Interface ISDBProgress

Property Get Terminate As Boolean


Property description

Returns TRUE when script processing should terminate (e.g. the thread of this script was terminated by user). The script code should periodically check this property (mainly in loops) and terminate its processing as soon as possible in case the property value is TRUE.

Example code

for i=0 to list.count-1
  ' ... some code here
 
  if Progress.Terminate then
    Exit For
  end if
next