Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Bug Reports / Command out of place error (when it isn't)

Author
Message
BandP College Man
15
Years of Service
User Offline
Joined: 3rd Jul 2008
Location: Dorset (U.K.)
Posted: 7th Apr 2010 18:17
For some reason I tried to run Steve Vink's tutorial code (that he provided when explaining asset management) - it was one of your early newsletter tutorials. The line that appeared in error was the 'endtype' line in the following fragment of code.

` Firstly, describe the attributes of an alien in a TYPE.
` These are the attributes that will determine what you can build later...
type tAlien
name$ as string
legs as integer
arms as integer
mass# as float
strength# as float
health# as float
endtype

For no reason other than instinct I removed the three periods from the end of the second comment line and the error message disappeared.

Any explanation?
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 7th Apr 2010 21:41
By default (however, I think it was changed not too long ago) "..." is used to concatenate lines.
So in effect, the type declaration would be considered part of the above comment line, hence making the compiler choke on the "endtype" keyword.

Login to post a reply

Server time is: 2024-04-24 22:55:15
Your offset time is: 2024-04-24 22:55:15