[Gambas-user] GTK versus QT
Gianluigi
gradobag at gradobag.it
Thu Feb 23 14:46:54 CET 2023
Il 23/02/23 14:35, Philippe Valarcher ha scritto:
> Le jeudi 23 février 2023 à 14:26 +0100, Gianluigi a écrit :
>> Perhaps instead of changing what the user types, if you get an error,
>> just tell them that the expression is malformed.
>> You might also consider using regular expressions and format method
> I will try with regular expressions but i'm not that sure.
> Regards
> --
> Philippe Valarcher <philippe.valarcher at free.fr>
Hi,
try this code, it looks like England is still in Europe :-D
'----------------------------
Public Sub Form_Open()
System.Language = "en_EN.UTF-8"
End
Public Sub TextBox1_KeyPress()
TextBox1.Text = Format(TextBox1.text, "#,##.00")
End
'-----------------------------------
Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230223/ea076dff/attachment-0001.htm>
More information about the User
mailing list