[Gambas-user] gb3: Format$
Kevin Fishburne
kevinfishburne at ...1887...
Sun Jun 26 05:54:35 CEST 2011
On 06/25/2011 09:41 PM, nando wrote:
> Yes-Silly me!
> How about trying the print statements with ; and not&
> I'm curious how the bug manifests.
It displays the same results:
Public Sub Main()
Dim t As Float
t = CFloat(Now) ' Current time and date.
Print "1: CDate(t): "; CDate(t)
Print "2: Format$(CDate(t), \"hh:nn:AM/PM\"): "; Format$(CDate(t),
"hh:nn:AM/PM")
Print "3: CDate(t): "; CDate(t)
Print "4: Format$(CDate(t), \"hh:nn:AM/PM\"): "; Format$(CDate(t),
"hh:nn:AM/PM")
Print "5: CDate(t): "; CDate(t)
End
1: CDate(t): 06/25/2011 23:52:54
2: Format$(CDate(t), "hh:nn:AM/PM"): 11:52:PM
3: CDate(t): 06/25/2011 11:52:54
4: Format$(CDate(t), "hh:nn:AM/PM"): 11:52:AM
5: CDate(t): 06/25/2011 11:52:54
Out of curiousity, what's the difference between concatenating strings
with ";" versus "&"?
--
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sales at ...1887...
phone: (770) 853-6271
More information about the User
mailing list