Hello,
it is necessary in my ticket programm that about 10 datafields are placed in 1 row. It is grouped by the attribute LINE and the SEATS have to appear in the same row. Like this:
Line 1 Seat 5, 6, 7, 8 ...
Line 2 Seat 5, 6
Line 3 Seat 12, 13...
I tried it with three formulars. First in the Group Header:
WhilePrintingRecords;
StringVar chain :=";
NumberVar ChCnt :=1
Next in the details:
WhilePrintingRecords;
StrngVar Item := {temp.Buchung};
StringVar chain;
NumberVar ChCnt;
if ChCnt = 1
then (Chcnt :=2; chain := Item)
else
if Length(chain) + Length(Item) > 254
then chain := chain
else
chain := chain + ', ' + Item
Last in the Group Footer:
WhilePrintingRecords;
StringVar chain
Thats all. It works, but looks like this:
Line 1 Seat 5,00
Seat 5,00, 6,00
Seat 5,00, 6,00, 7,00
Seat 5,00, 6,00, 7,00, 8,00 ...
Line 2 Seat 5,00
Seat 5,00, 6,00
Line 3 Seat 12,00
Seat 12,00, 13,00...
Now I have 3 problems. I have to transform the currency in a number. Only one line of details must be behind the "Line x", and at last only 10 numbers (Seats) are allowed in one row.
Who can help me?
thx
Rainer
it is necessary in my ticket programm that about 10 datafields are placed in 1 row. It is grouped by the attribute LINE and the SEATS have to appear in the same row. Like this:
Line 1 Seat 5, 6, 7, 8 ...
Line 2 Seat 5, 6
Line 3 Seat 12, 13...
I tried it with three formulars. First in the Group Header:
WhilePrintingRecords;
StringVar chain :=";
NumberVar ChCnt :=1
Next in the details:
WhilePrintingRecords;
StrngVar Item := {temp.Buchung};
StringVar chain;
NumberVar ChCnt;
if ChCnt = 1
then (Chcnt :=2; chain := Item)
else
if Length(chain) + Length(Item) > 254
then chain := chain
else
chain := chain + ', ' + Item
Last in the Group Footer:
WhilePrintingRecords;
StringVar chain
Thats all. It works, but looks like this:
Line 1 Seat 5,00
Seat 5,00, 6,00
Seat 5,00, 6,00, 7,00
Seat 5,00, 6,00, 7,00, 8,00 ...
Line 2 Seat 5,00
Seat 5,00, 6,00
Line 3 Seat 12,00
Seat 12,00, 13,00...
Now I have 3 problems. I have to transform the currency in a number. Only one line of details must be behind the "Line x", and at last only 10 numbers (Seats) are allowed in one row.
Who can help me?
thx
Rainer