Is there any compatible .NET string.format function for Delphi win32?

Is there any compatible .NET string.format function for Delphi Win32?

I want to use the argument order syntax.

I found one on delphi3000.com, but it is pretty simple and without number support, etc.

Don't you know the best open source implementation?

Thank.

+5
source share
1 answer

Use SysUtils.Format.

It also supports argument order syntax, like string.format in .Net does.

You can change the order of the arguments, as in the following example.

Format ('% 1: s -% 0: d', [7, 'Text'])


C, , SysUtils.Format , printf C.

SysUtils.Format "printf", , RRUZ Cosmin Prund . ( help;)

.Net string.format , .

, , (, ), .Net.

.Net Delphi win32, .Net, , , .

+2

All Articles