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> <<a href="mailto:rstehwien@gmail.com">rstehwien@gmail.com</a>> 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> table := OrderedCollection new.<br><br> "there are 100 entries like what is below"<br><br> table add: ({<br> #value->2.<br> #cost->-3.
<br> #step->2.<br> #defense->3.<br> #combatMove->7.<br> #fullMove->14.<br> #carry->10.<br> #lift->20.<br> #death->20.
<br> #unconscious->11.<br> #woundThreshold->4.<br> #recovery->0.5.<br> #mysticArmor->0.<br> } as: Dictionary).<br>----------<br>More than 256 literals referenced.
<br>You must split or otherwise simplify this method.<br>The 257th literal is: 4360<br>----------<br><br>I'm trying to create a data table for a program and I'm wondering if<br>I'm limited to 256 literals per class or method. I tried initilizing
<br>the table in multiple methods (setting 50 per method) but get the same<br>error.<br><br>I'll probably just put the data in a database and do the lookup when<br>needed or load the table from a file. 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>