[Gambas-user] Bug with IsDate?

Jussi Lahtinen jussi.lahtinen at ...626...
Mon Dec 20 20:02:15 CET 2010


Question still valid, but I think there is problem with localization.

? IsDate(Cstr(Now))
False

? IsDate(Str(Now))
True

Jussi



On Mon, Dec 20, 2010 at 21:00, Jussi Lahtinen <jussi.lahtinen at ...626...>wrote:

> Hi!
> I don't quite understand how this should work...
>
> IsDate(Now) returns False, and IsDate(Str(Now)) returns True.
>
> I don't understand why IsXXX functions accept anything else than string.
> Help window says 'IsDate(Value As Variant) As Boolean' and below it it
> continues 'IsDate( String ) As Boolean'. See attachment.
> This creates confusion, especially when IsDate(Now) = False!
>
> So, if IsXXX functions are meant to handle only strings, why they don't
> strictly accept only strings?
>
>
> Gambas 3 rev 3384 @ Ubuntu 10.10 64bit
>
> Jussi
>



More information about the User mailing list