The function get_text_blocks_in_view retrieves a list of Text Blocks in a View.
get_text_blocks_in_view (view; list)
The function get_text_blocks_in_view is of type NUMBER.
The function has two parameters:
Return values
The function get_text_blocks_in_view will return the number of Text Blocks found in the View. This can be 0 if the View is empty. The output array will receive the names of the Text Blocks in the format Project.TextBlock. The order of the names matches the order in the View. If the output array is larger than the number of Text Blocks, the elements outside the range are left unmodified.
Example
ARRAY TEXT list[0]
NUMBER i
NUMBER n := get_text_blocks_in_view ("My View"; list)
#
Found @(numerals(n)) Text Blocks:
#
FOR i FROM 1 UPTO n DO
#
@(i) @(list[i])
#
OD