Yeah, as I said before, the string conversion is a bit non-trivial. If you
do a simple CStr( ... ) conversion, or an implicit one, you get one result.
When you use the Str( ... ) conversion (which also Print uses), you get a
completely different representation ...

I think the reason that there are two different conversion methods is that
the implicit conversion should be fast and simple, while the Str conversion
should be localized and return a more human-friendly string.

2012/4/2 Jussi Lahtinen <jussi.lahti...@gmail.com>

> OK, so it comes from PRINT.
>
> Jussi
>
>
>
> 2012/4/2 Benoît Minisini <gam...@users.sourceforge.net>
>
> > Le 02/04/2012 15:06, Jussi Lahtinen a écrit :
> > > Revision 4591 seems to have bug.
> > >
> > > ? Date(2484515)
> > > 16/05/2002 00:00:00
> > >
> > > ? ""&  Date(2484515)
> > > 05/16/2002
> > >
> > > Jussi
> > >
> >
> > No, it's normal:
> >
> > ? Date(2484515)
> > <=> ? Str(Date(2484515))
> >
> > whereas
> >
> > ? "" &  Date(2484515)
> > <=> ? Str("" & CStr(Date(2484515)))
> >
> > --
> > Benoît Minisini
> >
> >
> >
> ------------------------------------------------------------------------------
> > This SF email is sponsosred by:
> > Try Windows Azure free for 90 days Click Here
> > http://p.sf.net/sfu/sfd2d-msazure
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to