Formatting parameters

Top  Previous  Next

What is translated > Special RTL/VCL-functions > Formatting parameters

 

The Write(Ln) and the Str routines can be called with Width and Decimals formatting parameters in Delphi, by use of a special syntactical extension:

 

  Write(t, d:8:2);

  Str(d:8:2, S);

 

In the translated code, the Width and Decimals become normal comma separated parameters.

 

  Write( t, d, 8, 2 );

  Str( d, 8, 2, S );

 

This is possible also for the Write(Ln) procedure, which accepts further output parameters too, because such calls are divided into a series calls by Delphi2C#.



This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content