length_text_map
The length_text_map function yields the number of elements contained in a TEXT MAP.
length_text_map ( MAP_to_be_counted )
This function returns a NUMBER, which is the number of elements stored in the map.
This function has one parameter:
- MAP to be counted, MAP of type TEXT. A MAP of which the number of elements is counted.
An example is provided here.
MAP TEXT test_map
ASSIGN test_map ["first"] := "This is the first value"
ASSIGN test_map ["second"] := "This is the second value"
ASSIGN test_map ["third"] := "This is the third value"
ASSIGN test_map ["fourth"] := "This is the fourth value"
ASSIGN test_map ["fifth"] := "This is the fifth value"
NUMBER length_function_result
ASSIGN length_function_result := length_text_map (test_map)
#
@(length_function_result)
#
If you refer to a MAP element, it results in the creation of that element. The element is created with a default value: 0 for NUMBER, "" for TEXT, and FALSE for BOOL. For example, the test IF testing[1] THEN FI will result in the creation of element 1 in MAP testing.