Using Crystal 10 against Oracle 9 I have created a formula to display selected managers (parameters) in the report header. The parameters have been created in Command in order to place select parameter values into subquerries and allows the users (muiltiple value choice). The formula works well until I choose the third value (?Manager3).
end result: manager, manager, manager,
required result: manager, manager, manager
How do I remove the comma?
Formula placed in header: DisplayManagers
stringvar array mList := [{?Manager1}, {?Manager2}, {?Manager3}, {?Manager4}];
if not isnull({?Manager4}) then (mList[1] + ", " + mList[2] + ", " + mList[3] + ", " + mList[4])
else
if not isnull({?Manager3}) then (mList[1] & ", " & mList[2] & ", " & mList[3])
else
if not isnull({?Manager2}) then (mList[1] + ", " + mList[2])
else
if not isnull({?Manager1}) then (mList[1])
end result: manager, manager, manager,
required result: manager, manager, manager
How do I remove the comma?
Formula placed in header: DisplayManagers
stringvar array mList := [{?Manager1}, {?Manager2}, {?Manager3}, {?Manager4}];
if not isnull({?Manager4}) then (mList[1] + ", " + mList[2] + ", " + mList[3] + ", " + mList[4])
else
if not isnull({?Manager3}) then (mList[1] & ", " & mList[2] & ", " & mList[3])
else
if not isnull({?Manager2}) then (mList[1] + ", " + mList[2])
else
if not isnull({?Manager1}) then (mList[1])