Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Formatting strings
Mon, Jun 1 2015 4:28 PMPermanent Link

Paul Waegemans

IMS bvba

Avatar

Is there a way to format a float field.  

In Delphi it would be something like:

FormatFloat('#,.00',L_WebWinkel.columns['prijs'].asfloat)
Mon, Jun 1 2015 4:52 PMPermanent Link

Raul

Team Elevate Team Elevate

On 6/1/2015 4:28 PM, Paul Waegemans wrote:
> Is there a way to format a float field.
> In Delphi it would be something like:
> FormatFloat('#,.00',L_WebWinkel.columns['prijs'].asfloat)

You can use FloatToStr and it takes a 2nd parameter for decimal places.

For thousands separator you'd need to write your own helper function for
as there is nothing in framework AFAIK yet

Raul



Image