ISDBProgress::Terminate: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
 
m (text formatting ("true"))
Line 3: Line 3:
===Property description===
===Property description===


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


===Example code===                     
===Example code===                     

Revision as of 19:50, 28 September 2008

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 periodacally 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