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 <[email protected]>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
>
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to