#include "lvkrn.h"
L_LVKRN_API L_INT L_VecGetLayerByName(pVector, pszName, pLayer)
Gets the layer with the specified name, in the specified vector handle.
Pointer to the vector handle.
Character string that contains the name of the layer to get.
Pointer to a VECTORLAYER structure to be updated with the layer handle, if the layer is found.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
If two or more layers in a vector handle have the same name, this function will get the first layer found.
Required DLLs and Libraries