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

Username:   Password: 
 RegisterRegister   
 ERROR messages in records
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
evildaddy911




PostPosted: Fri Nov 11, 2011 8:46 am   Post subject: ERROR messages in records

What is it you are trying to achieve?
Im trying to clean up my coding on a game i made by implementing records

What is the problem you are having?
when i try to run the program, i get an error highlighting the "type" (right before the record) and saying that it expected '..'

Describe what you have tried to solve this problem
replacing the type with '..' like it said... no idea what else to do

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)

Turing:

type character :
    record
        x : real
        y : real
        xv : real
        yv : real
        hp : int
    end record


Please specify what version of Turing you are using
not sure, the newest version found on holtsoft
4.1.1 something
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Fri Nov 11, 2011 9:04 am   Post subject: RE:ERROR messages in records

The issue is probably a couple of lines above your record declaration. Maybe you messed up a for loop, or array declaration (var foo : array 1 %This is what I'm talking about).
evildaddy911




PostPosted: Fri Nov 11, 2011 4:30 pm   Post subject: RE:ERROR messages in records

yeah, typo in the constant declaration right above it, works great now
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  [ 3 Posts ]
Jump to:   


Style:  
Search: