Array question
Jeff Harrison
Jeff.Harrison at Epixweb.com
Wed Mar 24 08:22:16 PST 2004
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.
More information about the Filepro-list
mailing list