Maptitude GISDK Help

CloseView()

Summary

Drops a view from the system.

 

Syntax

CloseView(string view_name)

 

Argument

Contents

view_name

Name of the view to be dropped

 

Notes

If these conditions hold, the layer, and all joined views containing the layer, are dropped together.

If the input view is not a geographic layer (e.g., it is a joined view or a dBASE table), CloseView() succeeds only if the view itself is not displayed by any editor or used by any themes.

Example

CloseView("States")

// This loop closes all views:

vws = GetViewNames()

for i = 1 to vws.length do

     CloseView(vws[i])

     end

 

Error Codes

Error Type

Meaning

Error

The view is in use (see Notes for details) and cannot be dropped

NotFound

The specified view does not exist

 

See Also

Function

Summary

GetViews()

Gets information on views in the system or views associated with a layer

GetViewNames()

Gets a list of all views

GetView()

Gets the name of the current view

DropLayer()

Removes a layer from a map

 

 

©2025 Caliper Corporation www.caliper.com