Return Function

The Return() function terminates execution of a GISDK macro or dialog box and returns a value to the calling GISDK macro or dialog box (if any). Return() has the form:

Return(expression)

or

Return()

If no expression is specified, the GISDK macro or dialog box returns null.

Note that, in a dialog box, Return() terminates the entire dialog box and should not be used to terminate the GISDK macro of a dialog box item, including an embedded GISDK macro item. The same is true for toolboxes and toolbars.