Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:38 06 Jul 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 : New feature? Initialising constant arrays

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10205
Posted: 07:58am 11 Nov 2014
Copy link to clipboard 
Print this post

Hi

For many applications it is convenient to set up constant arrays: character tables for graphic displays, thermocouple lookups, etc.

Is there a way of doing this in mmbasic (specifically micromite)?

The data/read syntax is usable but not very elegant if more than one table is required in a program.

Also, Am I correct in thinking there isn't a line continuation mechanism in mmbasic?

Basically I want to do something like the attached:

option default integer
const char-array(64)= &H12345678, &H567890, &H125356, -
&H12345678, &H567890, &H125356, -
&H12345678, &H567890, &H125356, -
&H12345678, &H567890, &H125356, -

...

&H1234567



Thanks

Peter
 
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