contents   index   previous   next



interface: SEContinueFunction

 

public void seContinueFunc(SEContext se);

 

The seContinueFunc method is called by the ScriptEase interpreter after every statement while evaluating scripts. It is useful to perform periodic work, such as checking Windows messages in a Windows ScriptEase application. It is also useful in implementing a debugger to regain control after each statement is executed.

 

When evaluating scripts using seEval (described in Chapter VI), you can pass the SE.INFREQUENT_CONT flag to have the continue function called much less frequently than once per statement. If all you need to do is an occasional Windows Message processing, calling this function after every statement wastes a lot of processing, which is when this flag is most useful.

 

You use the standard ScriptEase wrapper return rules to control execution using this method. You can return an error in the normal way, which will abort script execution but can be trapped like any other error. Alternately, you can use set the object/member pair SE.RETURN,SE.EXIT to true in order to force the program to abort completely. Returning a non error value does nothing, it is ignored. Either you generate an error in order to abort script execution, or you return nothing and the script continues as normal.

 

 

 


interface: SEFileLocation