<div dir="ltr">You can try this:<br>--------------------------<br>  Dim hDate As DateBox<br><br>  DataControl1.Field = "xxxx"<br>  hDate = DataControl1.Children[0]<br>  hDate.Mode = 0<br>--------------------------<br><br>Regards<br>Gianluigi</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 3 lug 2019 alle ore 18:59 Marco Ancillotti <<a href="mailto:gambas@servinfo.it">gambas@servinfo.it</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I have a datacontrol with a date type field in postgresql ( date type <br>
only have date without time ).<br>
<br>
When I use it the field display date and time ( time is always 00:00 ) , <br>
when I try to change the control to set the mode to date only using:<br>
<br>
datacontrol.Control.mode = 0<br>
<br>
I get "Datebox.mode is not a control' error.<br>
<br>
So the datacontrol don't detect correctly the field type ( date only <br>
without time ) and when I try to force it I get the error.<br>
<br>
Is there a way to set the mode or to force the datacontrol to use the <br>
right field type in any way ?<br>
<br>
thank's,<br>
<br>
marco.<br>
<br>
<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>