[Lazarus] whats wrong with that line of code?

John Landmesser jmlandmesser at gmx.de
Sat Aug 15 13:19:09 CEST 2015


A) thank you guys!!!

B) Werner Pamler ...

Fazit: ... so its not possible to get the currency symbol  € using 
FormatCurr, that what i learned so far?!!

i was wrong interpreting the function name as delivering a formatted 
number plus(!!) the currency symbol!



On 15.08.2015 12:12, Werner Pamler wrote:
> This is how it works with the %m format
>
> procedure TForm1.FormCreate(Sender: TObject);
> begin
>   DefaultFormatSettings.Currencystring := '€';
>   Label1.Caption := Format('%m', [11111111.0]);
>   // "Format" instead of "FormatCurr", parameter in square brackets, 
> value must be a float
> end;
>
> Am 15.08.2015 um 11:13 schrieb John Landmesser:
>> CurrencyString shows €
>>
>> FormatCurr('%M',111111111) -> %M
>>
>> Expected a currency string as '111.111.111,00 €'
>>
>> System: Linux, Debian Sid
>>
>> sorry for that really idiotic question :-))
>>
>>
>>
>> -- 
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





More information about the Lazarus mailing list