[Gambas-user] Date var and message output
Ricardo Díaz Martín
oceanosoftlapalma at ...626...
Fri Apr 16 15:34:47 CEST 2010
658 are the miliseconds at time of now()
Regards,
Ricardo Díaz
2010/4/16 Benoît Minisini <gambas at ...1...>
> > Hi i want to ask why there is a difference when i print a date var and
> when
> > i Message the var
> > example code
> >
> > dNow = Time(Now)
> > PRINT dNow 'output 14:37:10
> > Message(dNow) 'output 14:37:10.658
> >
> > what is the 658 at the end if Messagebox output?
>
> Because the default Date -> String conversion use the CStr() function.
> Message(dNow) is equivalent to Message(CStr(dNow)).
>
> On the other hand, PRINT uses the Str$() function to convert its arguments.
>
> Look in the documentation to see the difference between Str() and CStr().
>
> Regards,
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list