Initializing help system before first use

svgwaitclose

svgwaitclose


Purpose
Delay model termination.
Synopsis
procedure svgwaitclose(msg:text,mode:integer)
procedure svgwaitclose(msg:text)
procedure svgwaitclose
Arguments
msg 
Some message to display.
mode 
Mode of operation:
Wait until the browser window is closed
Same as above except if running from Workbench: termination occurs after the graph is loaded
Example
This code shows a typical call sequence for graphical display.
svgaddgroup("a", "Group A")
svgaddrectangle(20, 120, 200, 250)
svgrefresh        ! Display the graphic
svgwaitclose      ! Model waits here until display window is closed
Further information
1. A call to this routine is typically added to the end of any model that includes graphical display (that is, calls to svgrefresh) via mmsvg to allow the user time for inspecting the graphical output. If this subroutine call is not present, then model termination may close the display window or prevent the browser to load the graph.
2. The last form of the routine is equivalent to svgwaitclose("",0).
Related topics