The printf function is the most versatile formatting function in OpenCReports. It does not exist in RLIB. Using the second generation format strings makes it completely unambiguous.
The printf() function in OpenCReports
allows formatting every data type into a common result string.
Example:
printf('You had %d %s on !@{%Y-%m-%d} '
'and %d %s on !@{%Y-%m-%d} in your pocket.',
6, 'apples', stodt('2022-05-01'),
2, 'oranges', stodt('2022-05-02'))The result is:
You had 6 apples on 2022-05-01 and 2 oranges on 2022-05-02 in your pocket.