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.

Newcomers DBPro Corner / question about dim, please

Author
Message
Dracula
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: DBP Recreation of Castle Csejthe
Posted: 23rd Oct 2006 04:36
Sorry for the newb question, but is there a way I can dimension arrays that is more efficient than:

dim x(1)
dim z(8)
dim qws(4)

like linking then on a single line. I recall being able to do:

dim x(1), z(8), qws(4)

back in old versions of basic.

Thanks for the help.

D
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 23rd Oct 2006 13:31
One command per line is the standard way of doing things, but if you must you just seperate multiple commands (ANY commands) with :

dim x(1) : dim z(8) : dim qws(4)

Boo!
Dracula
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: DBP Recreation of Castle Csejthe
Posted: 23rd Oct 2006 20:43
Thank you spooky!!

Happy Halloween!!

D

Login to post a reply

Server time is: 2024-11-27 05:45:10
Your offset time is: 2024-11-27 05:45:10