Array question
Terry Slater
trslater at rels-tn.com
Wed Mar 24 11:34:04 PST 2004
I just wanted to say "Thanks!" too all of you that responded to my question.
Jeff has given me a pretty good solution to my problem. That is a pretty
neat way of getting around a shortcoming of the filePro array feature. As
Richard has suggested, hopefully fptech will add the additional
functionality at some point in the future.
Thanks!
Terry Slater
Computer System Administrator
Real Estate Loan Services
1100 Kermit Dr., Ste. 204
Nashville, TN 37217
phone: (615) 367-2300
fax: (615) 367-2521
trslater at rels-tn.com
-----Original Message-----
From: Jeff Harrison [mailto:Jeff.Harrison at Epixweb.com]
Sent: Wednesday, March 24, 2004 10: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.
More information about the Filepro-list
mailing list