Developer Documentation Library > UNICOM Intelligence Function Library > Miscellaneous functions > IsElementInVersions
 
IsElementInVersions
Tests whether an element or list exists in all specified versions of a variable.
Syntax
IsElementInVersions(<value>, <elements>, <versions>)
Parameters
<value>
Type: None
Variant value, used only to specify which MDM object to use.
<value> can refer to any type of MDM object that has elements, for example, Field, Array, Grid or VariableInstance, or it can be an Elements list itself.
<elements>
Type: None
Text or Categorical value specifying an element or Elements list in <value>.
If Elem is of type Text, it is assumed to be the full name or numeric value of either a single Element or an Elements list.
If <elements> is of type Long, it is assumed to be the numeric value of an Element or Elements list.
If <elements> is of type Categorical, its first value is used to specify the Element or Elements list.
If <elements> is empty or NULL, the return value is False.
If Elem is of any other type, an error occurs.
If <elements> specifies a value that does not correspond to an Element or Elements list in the MDM document, the return value is False.
<versions>
Type: Text
(Optional.) Names of versions to check.
<versions> is a version expression as used in the Open method of an MDM Document. If <versions> is omitted or blank, all versions of <value> that are currently selected in the MDM document are used.
(return)
Type: Boolean
Whether the element/list exists in all specified versions of <value>.
See also
Miscellaneous functions