Blitz (269/640)

From:Tony Rolfe
Date:29 Aug 99 at 06:24:58
Subject:Re: Phonecode Dilemma

On Sat, 28 Aug 1999 16:43:57 +0000 Bippy M said:
> Hiya Guys,
>
> Okay I've sorta finished v1 of my phonecode proggie, and am now on v2 which
> will have many more features :)
>
> Anyway, I'd like your opinions!!
>
> I am basically reading the phonecodes into different arrays, I setup 20,000
> array elements in each array (I use about 10200 in each).. This obviously
> requires ALOT of memory, so what would be the best way arounf this..
> basically the arrays are:
>
> codes$ (20000)
> subcode$ (20000)
> areacode$(20000)
> display$ (20000)
>
Use random files rather than arrays.

Simply put, store the information for the code at the record number
corresponding to the area code e.g, for a 0174 area code, store that
information at record number 174 (Always assuming that there is no 174
or 00174 area code (which would screw up things a bit.) I've used
LOTS of RRN files in my program so mail me privately if you need help.
24 hour turn-round as I only go online once a day (usually).

Cheers



Tony Rolfe
Amiga 2000, 68030/25, 1+8Mb
www.shoalhaven.net.au/edgewater

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie