[Gambas-user] DateChooser strange behavior

Gianluigi bagonergi at ...626...
Fri Dec 11 19:38:31 CET 2015


OK Benoit,
I want to get exactly what you get from 1 to 12.
How do I get over the whole month?
I mean: If they are in Italy 52 – 25/12/2015 and if they are in the USA 52
- 12/25/2015

Regards
Gianluigi

2015-12-11 17:00 GMT+01:00 Benoît Minisini <gambas at ...1...>:

> 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
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list