whileprintingrecords;
stringvar Output:="";
numbervar Counter;
For Counter := 1 to ubound({?MyDateParameter}) do(
Output:= Output& {?MyDateParameter}[Counter]& ","
);
left(Output,len(Output)-1)
Multiple Range values separated by a carriage return:
whileprintingrecords;
stringvar Output:="";
numbervar Counter;
For Counter := 1 to ubound({?MyDateParameter}) do(
Output:= Output& minimum({?MyDateParameter}[Counter])& " to "& maximum({?MyDateParameter}[Counter])&chr(13)
);
left(Output,len(Output)-1)
Multiple Range and Discrete values separated by a carriage return:
whileprintingrecords;
stringvar Output:="";
numbervar Counter;
For Counter := 1 to ubound({?MyDateParameter}) do(
if minimum({?MyDateParameter}[Counter])= maximum({?MyDateParameter}[Counter]) then
Output:= Output & minimum({?MyDateParameter}[Counter])&chr(13)
else
Output:= Output & minimum({?MyDateParameter}[Counter])& " to "& maximum({?MyDateParameter}[Counter])&chr(13)
);
left(Output,len(Output)-1)
As you can see from these examples, the differences between string and numeric (or dates and other data types) is that you must first convert non-string data types to a string, hopefully this will allow you to handle any data types.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.