getLayerName

Get the name of a layer.
getLayerName([in] LONG layerHandle, [out, retval] BSTR *name)
This function returns the name of a layer.

The layer argument is an opaque layer handle, returned by getLayer.

VB6:
n = viewer.getNumLayers For i = 0 To n-1 layer = viewer.getLayer(i) name = viewer.getLayerName(layer) visible = viewer.getLayerVisibility(layer) ' ... add a list entry using name and visible ... Next i
getNumLayers
getLayer
getLayerVisibility
setLayerVisibility
getLayerViewState
getLayerPrintState