Suspends execution.
Stop |
You can place Stop statements anywhere in the code to suspend execution.
The Stop statement suspends execution, but unlike End, it doesn't
close any files or clear variables. Also unlike End, it doesn't stop
execution of lower-level scripts.
If it's necessary to suspend execution of the script, but leave its procedures
waiting for subsequent calls, you should use the Stop statement.
Note: The Stop statement operates within one execution level of ConceptDraw Basic script. For example, you can define at the document level your procedures for common use from different execution levels, and suspend execution of the code at the document level with Stop. Then you can use procedures of the document level in code at the page or shape level.
The code at the execution level where Stop was performed is suspended and remains resident waiting until procedures defined in it are called.
Note: If neither Stop nor End was met during execition of code, code of this execution level is considered resident by default.
The following example demonstrates how to leave resident procedures of any execution level in ConceptDraw Basic. Here the gData array is defined in the global area, and three procedures are defined in the code. However initially only one procedure - InitGlobalData() is called from the global area. The execution is suspened by the Stop statement, leaving all procedures resident waiting for subsequent calls.
Dim gData(256) As Double ' Definition of InitGlobalData() procedure |
See Also |
End Statement |