Hi, you can simply add this information to a comma or tab delimited file.  Then you can simply read this end to populate the instance variable.  Otherwise, you can add it to a database like you said and do the lookup when it is necessary.  If your goal is to lookup value given its key, why don't you simply use a Dictionary?  Just a thought.
<div><br class="webkit-block-placeholder"></div><div>Good luck,</div><div><br class="webkit-block-placeholder"></div><div>-Conrad<br><br><div><span class="gmail_quote">On 7/23/07, <b class="gmail_sendername">Robert Stehwien
</b> &lt;<a href="mailto:rstehwien@gmail.com">rstehwien@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">What is the source of the error produced by the following code?
<br>----------<br>initialize<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;table := OrderedCollection new.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;there&nbsp;&nbsp;are 100 entries like what is below&quot;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;table add: ({<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#value-&gt;2.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#cost-&gt;-3.
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#step-&gt;2.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#defense-&gt;3.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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More than 256 literals referenced.
<br>You must split or otherwise simplify this method.<br>The 257th literal is: 4360<br>----------<br><br>I&#39;m trying to create a data table for a program and I&#39;m wondering if<br>I&#39;m limited to 256 literals per class or method.&nbsp;&nbsp;I tried initilizing
<br>the table in multiple methods (setting 50 per method) but get the same<br>error.<br><br>I&#39;ll probably just put the data in a database and do the lookup when<br>needed or load the table from a file.&nbsp;&nbsp;But I wanted to know the source
<br>of the problem.<br><br>Thanks,<br>Robert<br>_______________________________________________<br>Beginners mailing list<br><a href="mailto:Beginners@lists.squeakfoundati">Beginners@lists.squeakfoundati</a><a href="http://on.org">
on.org</a><br><a href="http://lists.squeakfoundation">http://lists.squeakfoundation</a>.org/mailman/listinfo/beginners<br></blockquote></div><br></div>