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.

DarkBASIC Professional Discussion / Problems declaring types

Author
Message
Interplanetary Funk
16
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 25th Jan 2011 00:17
I'm trying to define a type using the code below:

however, I get the error "Declaration is not valid at line 252." (The line I declare the type). I've tried this type in a blank project as well but still got the same error, any help or suggestions?

thanks in advance.

BASIC programmers never die, they GOSUB and don't RETURN.
Rich Dersheimer
AGK Developer
17
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 25th Jan 2011 00:35
Because it's not "as int" but "as integer". Spell out integer and it works just fine.

Interplanetary Funk
16
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 25th Jan 2011 00:47
okay, thank you very much, didn't realise that as elsewhere you can just call it like "Var as int".

BASIC programmers never die, they GOSUB and don't RETURN.

Login to post a reply

Server time is: 2026-07-16 12:20:09
Your offset time is: 2026-07-16 12:20:09