Array question

Jeff Harrison Jeff.Harrison at Epixweb.com
Wed Mar 24 11:42:44 PST 2004


John Esak Wrote:
 
[Jeff Wrote ]
[snip]
> >
> > I don't think so.  Unless there was a new feature that I missed.
> > One way to
> > fake this though would be to create a one-dimensional with enough
> > slots (300
> > in your case) like so:
> >
> > deep="100"
> > dim array[300]
> >
> > Now say you want element 3,50 of your "two" dimensional array:
> > X=3
> > Y=50
> >
> > array(X*deep-deep+Y)
> >
> > Good Luck.
> >
>
 
> Jeff,
> Let me be the first to say... that is way cool. Very nifty 
> idea... and it
> only adds a line of code to get to it... just fill x and y 
> with what would
> have been the subscripts of the two dimensional array. Thanks.
> 
> John Esak
> 

Thanks John.  I can't really take credit except for the fact that I was able
to pull this out of my memory banks back from the time I was coding in basic
on various old trs80 computers.  I must have read about this concept in a
magazine back then.  Jeez, that was a long time ago!

Jeff Harrison
jeff.harrison at epixweb.com

Author of JHExport and JHImport - The fastest and easiest ways to generate
code for filepro exports and imports.  Demos available upon request.

 


More information about the Filepro-list mailing list