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 Discussion / DIM array , one per line?

Author
Message
Gizmo
22
Years of Service
User Offline
Joined: 6th Nov 2002
Location:
Posted: 4th Aug 2004 06:39
Is it me, or is it a pain to DIM arrays one per line?
or am i missing something?

Thanks

There's no place like 127.0.0.1
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 4th Aug 2004 08:17
any more clues on what you are trying to do?

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 4th Aug 2004 15:42
dim a(4)
dim b(34)


How else would you prefer to do it?

"eureka" - Archimedes
Axelman
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location: Parallel Universe
Posted: 4th Aug 2004 16:43
you could do it like this

DIM a#(1) : DIM b#(2) : DIM c#(2) etc.

Hope that helps

43% of Percentages are made up on the spot.
Gizmo
22
Years of Service
User Offline
Joined: 6th Nov 2002
Location:
Posted: 4th Aug 2004 21:45
Yeah that's it! Doh, it's so obvious.

I'm a bit of a VBer and used to typing
Dim a$(5), b(99,2), c(32)

etc

I'll use : in future!

Thanks all.

There's no place like 127.0.0.1
Axelman
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location: Parallel Universe
Posted: 5th Aug 2004 18:58
no worries, glad i could help.
People Helped List: 1 and Counting
Yay!

43% of Percentages are made up on the spot.

Login to post a reply

Server time is: 2025-05-25 17:47:55
Your offset time is: 2025-05-25 17:47:55