> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to