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 / Why can't/ how can I DIM a subdomain variable?

Author
Message
Qqite
16
Years of Service
User Offline
Joined: 28th Feb 2010
Location: Florida, U.S.
Posted: 11th Mar 2010 16:03
What I would like do do (which I am not sure if it is possible) is make a subdomain variable (declared from a type : endtype command) and use user created variables (like DIM).

I am VERY new to programming and Darkbasic but I am learning fast. I'm still on the math stage but I'm trying to extend my knowledge of the math portion as much as I can before I even see graphics

Here is my example of what I'm trying to do (I get an error at the DIM part):


Ventures of the worlds around us are only limited by imagination.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 11th Mar 2010 18:46
Like this.



Note you don't need to declare variables 'As Integer' as they are ints as standard unless declared otherwise.

My signature is NOT a moderator plaything! Stop changing it!

Login to post a reply

Server time is: 2026-07-26 23:40:48
Your offset time is: 2026-07-26 23:40:48