<div dir="ltr">I wrote it even if I imagined it was wrong (it works here), I'm sorry.<br>It's useless, with the dates I still do not understand anything.<br><div>These coming days, I will try to write a my wiki to and submit it to your judgment.</div><div><br></div><div>Regards</div><div>Gianluigi<br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-07 16:35 GMT+02:00 Benoît Minisini <span dir="ltr"><<a href="mailto:g4mba5@gmail.com" target="_blank">g4mba5@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 07/06/2018 à 16:26, Gianluigi a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I believe that coercion should always be avoided.<br>
You have passed a string to a date type:<br>
    Dim Dat1 As Date<br>
    Dat1 = "6/1/2018"<br>
By writing Dat1 = CDate ("6/1/2018") the error would have been avoided.<br>
<br>
Regards<br>
Gianluigi<br>
<br>
</blockquote>
<br>
Of course not, as Dat1 = "6/1/2018" and Dat1 = CDate("6/1/2018") do exactly the same thing.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Benoît Minisini<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</font></span></blockquote></div><br></div>