[Gambas-user] datacontrol date problem
Gianluigi
bagonergi at gmail.com
Fri Jul 5 19:36:59 CEST 2019
You can try this:
--------------------------
Dim hDate As DateBox
DataControl1.Field = "xxxx"
hDate = DataControl1.Children[0]
hDate.Mode = 0
--------------------------
Regards
Gianluigi
Il giorno mer 3 lug 2019 alle ore 18:59 Marco Ancillotti <gambas at servinfo.it>
ha scritto:
> Hi all,
>
> I have a datacontrol with a date type field in postgresql ( date type
> only have date without time ).
>
> When I use it the field display date and time ( time is always 00:00 ) ,
> when I try to change the control to set the mode to date only using:
>
> datacontrol.Control.mode = 0
>
> I get "Datebox.mode is not a control' error.
>
> So the datacontrol don't detect correctly the field type ( date only
> without time ) and when I try to force it I get the error.
>
> Is there a way to set the mode or to force the datacontrol to use the
> right field type in any way ?
>
> thank's,
>
> marco.
>
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190705/387c74e0/attachment.html>
More information about the User
mailing list