Initializing help system before first use

# 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:
0 | Wait until the browser window is closed
1 | 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
svgrefresh, svgclosing.
Parent Topic Procedures and Functions

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.