You are not logged in.
Does mORMot 2 have an internal limit on the number of arguments that can be passed to `FormatUtf8`?
When I pass more than 31 arguments, I get the following exception:
`ESynException: TFormatUtf8: too many arguments`
Is there a built-in limit, or am I doing something wrong?
Offline
Was there a specific reason for that? Does it cause any additional issues?
Offline
Yes, I really did.
I needed to pass 37 arguments to FormatUtf8.
For now, I split it into two calls and concatenate the results:
FormatUtf8(...) + FormatUtf8(...)
Thanks for the suggestion! I'll also take a look at TTextWriter and TSynTempAdder.
Last edited by Kabiri (Today 06:22:15)
Offline
I have enhanced to up to 40 arguments - and may be more for %%% patterns.
https://github.com/synopse/mORMot2/commit/149397043
![]()
Offline
Thanks ![]()
Offline