Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

MapExists

  • Last UpdatedJul 18, 2023
  • 1 minute read

Checks for the existence of the map.

Syntax

INT MapExists(STRING sMapName)

sMapName:

Name of the map.

Return Value

TRUE if the map exists, or FALSE if not.

If the map or key name is empty an "Invalid argument" error (274) will be raised.

Example

! Demonstrate MapExists.
STRING sMapName = MapOpen();
! sMapName is a randomly generated text that uniquely identifies the map
INT iMapExistsResultExpectTrue = MapExists(sMapName);
! iMapExistsResultExpectTrue will be set to TRUE (non-zero)
INT iMapCloseResult = MapClose(sMapName);
! The map that is identified by sMapName is now closed and unavailable
INT iMapExistsResultExpectFalse = MapExists(sMapName);
! iMapExistsResultExpectFalse will be set to FALSE (zero)

MapClear, MapClose, MapOpen, MapKeyCount, MapKeyDelete, MapKeyExists, MapKeyFirst, MapValueGet, MapKeyNext, MapValueSet, MapValueSet

See Also

Map Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in