.. highlightlang:: us .. _objgetok: ObjGetOk ======== .. index:: ObjGetOk .. us.tag ObjGetOk ENGLISH :ref:`ObjGetOk` checks if the last call of :ref:`ObjGet` was successful. .. function:: bool = ObjGetOk() .. us.return **Return Value** *bool* is TRUE (1) if the function was successful, and FALSE (0) if and error occurred. .. us.comment **Comment** Note that the function is called without a handle. .. us.example **Example** :: bGrid = LayerIsMajorGrid(hLayer); if (bGrid == 0 && !ObjGetOK()) { error ("error by call of LayerIsMajorGrid()"); } .. seealso:: :ref:`overview-objects`, :ref:`ObjCreate`, :ref:`ObjGet` :sub:`id-1272913`