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 (auto) 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. The parameter key_to_find is of type TEXT. The key to be detected in the map.
  2. The parameter map_name is of type MAP FIELDSET. The map to be tested for the presence of the key_to_find.

Example

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

The map mymap's index will be searched for the key a_key. If it is found the variable key_found will be set to TRUE.