dim

GCC Consulting gccconsulting at comcast.net
Wed Apr 9 10:37:40 PDT 2008



> -----Original Message-----
> From: filepro-list-
> bounces+gccconsulting=comcast.net at lists.celestial.com [mailto:filepro-
> list-bounces+gccconsulting=comcast.net at lists.celestial.com] On Behalf
> Of Joe Chasan
> Sent: Wednesday, April 09, 2008 11:25 AM
> To: Richard Kreiss
> Cc: 'Filepro-List at Lists. Celestial. Com'
> Subject: Re: dim
> 
> On Wed, Apr 09, 2008 at 10:50:38AM -0400, Richard Kreiss wrote:
> > Version 5.6 allows one to dim an array to non-contiguous associated
> fields.
> >
> > Dim foobar(10):a1
> >
> > Doing this to a lookup file gives a syntax error.
> >
> > Dim foobar(20):myfile(a1) would be convenient.
> 
> just curious - have you tried foobar(20):myfile(a1 )
> i have found that in a few places in filepro, using an associated field
> immediately next to a parentheses confuses filepro.
> 

Test Joe's suggestion.

1. Dim foobar(20):myfile(a1 ) passes syntax check

2. Fails to get any data from myfile.  

Need to use 2 arrays to get data and then backfill the first if there is
data in the second.

Richard




More information about the Filepro-list mailing list