Path: chuka.playstation.co.uk!news From: "Jon Prestidge (Moose)" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Destruction Of Arrays.... Date: Wed, 29 Mar 2000 21:15:40 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 93 Message-ID: <8btoa5$j171@chuka.playstation.co.uk> References: <38DBC707.49543F25@chilternmag.demon.co.uk> <8bh0kg$7291@chuka.playstation.co.uk> <38DE47BA.331E1477@chilternmag.demon.co.uk> NNTP-Posting-Host: host213-1-77-6.btinternet.com X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Here's an other idea using run length encoding, in a way, (like Steven Osman suggests).... I've knocked-up a QB pogram for you (it'd probably work in VB too) that generates a portion of C source code that you can paste into your program. Instead of typing in all the values in your source code you just have to do it in a text file instead that the program reads and interprets (exactly the same format though). I've tested this prog, but I've not tested the code it produces (but it looks OK). Although the work is done for you it generates quite a lot of code... you may be able to think of some tricks to shorten the code output. In anycase, even as it is now, I'm sure it'll use a lot less memory than including more than one complete definition in your source code. I hope it does the trick. Jon begin 666 CODE_GEN.BAS M)R!#3T1%7T=%3BY"05,@($IO;B!0'0B($9/4B!/5510550@05,@(S(-"@T*97AI'!E8W1E9"4[("(@($YU;2!A2!E;&5M96YT M'1L:6YE)" ]($Q%1E0D*'1E>'1L:6YE)"P@3$5.*'1E>'1L:6YE)"D@+2 Q M*0T*(" @5T5.1 T*(" @;G5M;&EN97,E(#T@;G5M;&EN97,E("L@,0T*(" @ MR J<&]I;G1E'!E8W1E9"4@5$A% M3@T*(" @(" @4%))3E0@(D5RR J<&]I;G1E M