Product Site

9.1.1. Message Term Assignments

In addition to assigning values to variables, the PARSE instruction also allows any message term value that can be used on the left side of an assignment instruction (See Section 1.13, “Assignments and Symbols”). For example:
Example 9.5. Parse with Message Terms Assignments
string = "1 one two 3 4"
a = .Array~new
d = .Directory~new
parse var string n a[n] a[n + 1] d~three d~four
-- a[1] = one
-- a[2] = two
-- d~three = 3
-- d~four = 4