"Xcriber51" >
2007-10-18 11:05:37 UTC
Hi
A very simple question (couldn't find the answer in the Help of BlackBox).
I want to create a string as a lookup table, so I want to make it a
constant. e.g.
CONST Encodings = "01230124022455012623017272";
But then, since I want to use it as a lookup table, I want to access it
with an index, e.g.
ch := Encodings[i];
Unfortunately, the compiler tells me this is a no-no. What exactly is the
reasoning behind this rule?
Thanks.
-- Ken
--
Message posted using http://www.talkaboutprogramming.com/group/comp.lang.oberon/
More information at http://www.talkaboutprogramming.com/faq.html
A very simple question (couldn't find the answer in the Help of BlackBox).
I want to create a string as a lookup table, so I want to make it a
constant. e.g.
CONST Encodings = "01230124022455012623017272";
But then, since I want to use it as a lookup table, I want to access it
with an index, e.g.
ch := Encodings[i];
Unfortunately, the compiler tells me this is a no-no. What exactly is the
reasoning behind this rule?
Thanks.
-- Ken
--
Message posted using http://www.talkaboutprogramming.com/group/comp.lang.oberon/
More information at http://www.talkaboutprogramming.com/faq.html