SetLayerNumberAt

Usage                  Boolean SetLayerNumberAt(Layer As Integer, Index As Integer)

Description         This method sets the number of the layer on the specified index in the array of layers. Use the SetNumberOfLayers method to create array of layers.

Parameters         Layer                     Integer             Number of the layer to set.

                             Index                      Integer             Index of the layer in the array. This parameter is a zero based integer.

Return value      TRUE on success, otherwise FALSE. If the layer array is not created the method returns FALSE. If the index is less than 0 or higher than the number of elements in the array minus 1, the method returns FALSE.

Programming Notes        If you don’t want to use parameters as references in the parameter list you can use the following methods for handling viewable layers: SetLayerNumberAt, GetLayerNumberAt, SetNumberOfLayers, SetLayersExt. If you use C#, JavaScript, etc you should use these methods for layers.