[Gambas-user] I create a new function to share
Pino Zollo
pinozollo at ...626...
Fri Jun 26 14:27:22 CEST 2009
Il venerdì 26 giugno 2009 04:34:54 kobolds ha scritto:
> I create a function call FormatX() for easy formatting number, date and
> string . read the cctools.html for detail on how to use it .
>
> post your opinion what you think about it
>
> http://www.nabble.com/file/p24216805/cctools.tar cctools.tar
Hi,
I have tried in "it_IT.utf8" environment and I get:
FMain.Form_Open.396: comma is decimal separator True
FMain.Form_Open.397: 2 347,25
Actually puts a space in place of .
This is the code:
----------
IF InStr(Str(Pi), ",") THEN ' check the locale...has it comma or point as
separator ?
comma = TRUE
ELSE
comma = FALSE
END IF
DEBUG "comma is decimal separator ", comma
DEBUG CCtools.formatx(-2347.25, "@N9.2")
----------
I am going to try it in other LANG environment.
Thank you
Pino
--
Key ID: 0xF6768208
Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208
Key server: hkp://wwwkeys.eu.pgp.net
More information about the User
mailing list