Array question

John Esak john at valar.com
Wed Mar 24 10:34:05 PST 2004


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


> -----Original Message-----
> From: filepro-list-bounces at lists.celestial.com
> [mailto:filepro-list-bounces at lists.celestial.com]On Behalf Of Jeff
> Harrison
> Sent: Wednesday, March 24, 2004 11:22 AM
> To: 'trslater at rels-tn.com'; filePro List
> Subject: RE: Array question
>
>
> Terry Slater wrote:
> >
> > Hey folks!
> >
> > Is it possible to have a multi-dimensional array in filePro?
> > For example,
> > DIM ARRAY["3","100"] meaning define an array that is 3
> > elements wide and 100
> > elements deep. I could not find an example of this structure
> > in the help
> > files, so I wanted to ask the list.
> >
> > Thanks!
> >  
>
> 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 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.
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list



More information about the Filepro-list mailing list