.. highlightlang:: us .. index:: AppGetSelectedLayers .. _appgetselectedlayers: AppGetSelectedLayers ==================== .. us.tag AppGetSelectedLayers ENGLISH App New5400 :ref:`AppGetSelectedLayers` retrieves the handles of the selected layers in the active page. .. function:: hvLayer = AppGetSelectedLayers() .. us.return **Return Value** If the function succeeds, the return value is a vector of layer handles of the active page. If no layer is selected, the return value is 0. .. seealso:: :ref:`overview-application-object`, :ref:`AppGetActiveDocument`, :ref:`AppGetActiveEditor`, :ref:`AppGetSelectedDatasets`, :ref:`AppGetSelectedXYDatasets`, :ref:`AppGetSelectedXYZDatasets`, :ref:`GetParent` :sub:`id-1029337`