[Gambas-user] DateChooser strange behavior
Benoît Minisini
gambas at ...1...
Fri Dec 11 17:00:21 CET 2015
Le 11/12/2015 16:26, Gianluigi a écrit :
> Why this simple code works only between 1 and 12 of each month?
>
> Public Sub DateChooser1_Change()
> Dim d As Date, s As Integer, valore As String
>
> d = Date(DateChooser1.Value)
> valore = CString(d)
> s = Week(d)
> TextBox1.Text = s & " - " & CString(Val(valore))
> End
>
> Regards
> Gianluigi
What's your localization?
You cannot mix localized (Val) and not-localized (CString) functions
without writing rubbish code.
--
Benoît Minisini
More information about the User
mailing list