key_used_in_fieldset_map

The function key_used_in_fieldset_map tests if a certain key is present in a map of type FIELDSET, without creating the corresponding element.

key_used_in_fieldset_map ( key_to_find; map_name)

The result of the function is type BOOL. The function yields TRUE if the map contains an element map[key].

The function key_used_in_fieldset_map has two parameters:

  1. key_to_find is of type TEXT. The key to be detected in the map.
  2. map_name is of type MAP FIELDSET. The map to be tested for the presence of the key_to_find.

An example is provided here.

BOOL key_found := key_used_in_fieldset_map ( "a_key" ;  mymap )

The map index of the mymap is searched for the key a_key. If it is found, the variable key_found is set to TRUE.