Concat multiple values of same field on 1 detail line
Table 1 Table 2
1 1 a
2 1 b
3 1 c
I want to concatenate a b c onto a single details line for the value in Table 1.
This is as far as I got but the array only ever returns 1 value and so the loop never works.
Dim arrTestodes
arrTestodes = array({Table2.Column2})
Dim i
Dim stringoftests
i = 1
Do while i <= ubound(arrTestodes)
if i < 2 then
stringoftests = totext(arrTestodes(i))
else
stringoftests = stringoftests + ", " + ToText(arrTestodes(i))
end if
i = i + 1
Loop
formula = stringoftests
Re: Concat multiple values of same field on 1 detail line
Study the next solution, where we are concatenating a field and display the
resulting string at group or report footer in only one line, perhaps it can help to resolve
your problem
To do that, you have to create 3 formulas:
The first one, let's call it @null:
Code:
whileprintingrecords;
stringvar names := "";
Place it in your GH section, it will return you null.
Bookmarks