Author |
Message |
Jas
|
Posted: Sun May 08, 2005 2:12 pm Post subject: date |
|
|
Why doesn't this work?
code: |
var today : string
date (today)
put "Greetings!! The date today is ", today
|
the error is "Right boun of substring is greater than length of string" |
|
|
|
|
|
Sponsor Sponsor
|
|
|
mike200015
|
Posted: Sun May 08, 2005 3:19 pm Post subject: (No subject) |
|
|
it works, i just ran it, and it should work, cuz its straight out of the Turing Help File.
You could also use Time.Date, to display the time and date, so you dont need to declare anything. |
|
|
|
|
|
Mazer
|
Posted: Sun May 08, 2005 3:28 pm Post subject: (No subject) |
|
|
I got the same error as Jas when I tried it. Running on Turing 4.0.1 [k] (under Linux using WINE if that could matter).
But if Time.Date will give you the same result, it'd be easier to stick with that. |
|
|
|
|
|
Token
|
Posted: Sun May 08, 2005 9:26 pm Post subject: (No subject) |
|
|
mm worked for me |
|
|
|
|
|
Jas
|
Posted: Sun May 08, 2005 9:37 pm Post subject: (No subject) |
|
|
Hopefully it works tomorow at school, my teacher will be pissed if this project crashes!!! |
|
|
|
|
|
Token
|
Posted: Sun May 08, 2005 9:43 pm Post subject: (No subject) |
|
|
well if it does, explain to him that you got it right from turing source and then use Time.Date in place of the var today. |
|
|
|
|
|
MysticVegeta
|
Posted: Tue May 10, 2005 4:13 pm Post subject: (No subject) |
|
|
Works for me o_O |
|
|
|
|
|
|