I have a data structure that contains about 35-40 subfields, all of different lengths, all of them alphanumeric. I need to concatenate them together, separated by | to form a character string. Is there a way to reference the subfields by relative position in the data structure:
Example:
Data Structure is named DS
SomeString = DS.1 + '|' + DS.2 + '|' ........................+ DS.35).
I would like to concatenate all the subfields in a FOR .......ENDFOR loop instead of having 35 SomeString = statements.. Since the fields are not the same attributes, I cannot redefine them as an array or I would, hence this idea.
Any ideas, suggestions?
Much Thanks
Example:
Data Structure is named DS
SomeString = DS.1 + '|' + DS.2 + '|' ........................+ DS.35).
I would like to concatenate all the subfields in a FOR .......ENDFOR loop instead of having 35 SomeString = statements.. Since the fields are not the same attributes, I cannot redefine them as an array or I would, hence this idea.
Any ideas, suggestions?
Much Thanks
Comment