Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 date
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jas




PostPosted: 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
Sponsor
sponsor
mike200015




PostPosted: 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. Razz
You could also use Time.Date, to display the time and date, so you dont need to declare anything.
Mazer




PostPosted: 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




PostPosted: Sun May 08, 2005 9:26 pm   Post subject: (No subject)

mm worked for me Laughing
Jas




PostPosted: 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!!! Shoting
Token




PostPosted: 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




PostPosted: Tue May 10, 2005 4:13 pm   Post subject: (No subject)

Works for me o_O
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: