Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:09 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : const vs dim in mmbasic.exe

Author Message
crez

Senior Member

Joined: 24/10/2012
Location: Australia
Posts: 152
Posted: 11:17pm 18 Dec 2017
Copy link to clipboard 
Print this post

the line

Dim test%(5)=(1,2,3,4,5,6)

produces no error, but

Const test%(5)=(1,2,3,4,5,6)

gives Error: No closing bracket

Strange?

mm.ver = 5.04.06 and the previous oneEdited by crez 2017-12-20
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 12:50am 19 Dec 2017
Copy link to clipboard 
Print this post

I don't think you can have arrays of CONSTANTS


VK7JH
MMedit
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 05:56am 19 Dec 2017
Copy link to clipboard 
Print this post

Jim is right. It is something that is on my ToDo list but the way that MMBasic process arrays makes it difficult

Geoff.
Geoff Graham - http://geoffg.net
 
crez

Senior Member

Joined: 24/10/2012
Location: Australia
Posts: 152
Posted: 11:05pm 19 Dec 2017
Copy link to clipboard 
Print this post

Thanks Guys,
I wasn't aware of that minor limitation.

David
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025