.. highlightlang:: us .. index:: LayerMoveDataset .. _layermovedataset: LayerMoveDataset ================ .. us.tag LayerMoveDataset ENGLISH New420 LayerSet Changed424 :ref:`LayerMoveDataset` moves datasets to the specified diagram. Datasets can only be moved inside a page. The function can also be used to change the drawing order of datasets. .. function:: bool = LayerMoveDataset(hLayer, hvData) bool = LayerMoveDataset(hLayer, hvData, bTail) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hLayer Identifies the layer. .. uparam:: hvData *hvData* is a vector with dataset handles. .. uparam:: bTail If *bTail* is TRUE (1), the dataset is added to the end of the list. If *bTail* is FALSE (0), the dataset is inserted at the beginning of the list. Default value is TRUE (1). .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 4.2.4 - Order changed. The function call ``LayerMoveDataset(hLayer, LayerGetAllDatasets(hLayer))`` does not alter the drawing order. Before that change the order was reversed. * - 4.2.0 - New .. seealso:: :ref:`overview-diagrams`, :ref:`LayerCreate`, :ref:`XYCreate`, :ref:`XYZCreate`, :ref:`LayerAddObjects`, :ref:`LayerAddDataset` :sub:`id-390862`