Copying characters from a text string to an arrayΒΆ

text_to_array()

Copying characters from a text string to an array across element boundaries


SYNTAX

text_to_array(start_element, count, text)

Copies characters from a text string, which can be a long text string, to an array, starting at the beginning of a specified element and continuing across element boundaries.

start_element

The array name and starting element. The array can have multiple dimensions.

count

The number of characters to copy. The function continues to copy characters until it reaches this number or reaches the end of the array.

text

The text string from which to copy characters. This can be a string constant or the name of a field. If a field, it may be a long text field or a regular alphanumeric field.


EXAMPLE

!temp LongText,,a200[10],,p
!temp TextArray,,a100[20, 1000]

    text_to_array(TextArray[10,1], 2000, LongText)

RELATED TOPICS

Subscripted fields

Long text fields

array_to_text()