This is a rather obscure and, in my experience, seldom-used syntax. I haven't seen it used since the arrival of Natural 2 some 20 years ago. I would have to guess that its usage in Diptisaini's program is unnecessary.
The syntax is documented in
Programming Guide
. User-Defined Variables
. . Referencing a Database Array
. . . Referencing Arrays Defined with Variables
In the program's data definitions you will see two or more definitions of the same MU or PE field, each specifying a different range of occurrences, as in
02 PERIODIC-GROUP-VARIABLE (#I:#I+10)
02 PERIODIC-GROUP-VARIABLE (#J:#J+5)
To refer to these fields, Natural needs to know which range, and which occurrence within the range. The following line refers to the #Kth occurrence of the second range (the range beginning with #J).
VIEW.PERIODIC-GROUP-VARIABLE (#J.#K)
It is much clearer and simpler to define the field as a single range, and avoid the "#J." syntax.