dim
Richard Kreiss
rkreiss at gccconsulting.net
Wed Apr 9 09:58:02 PDT 2008
> -----Original Message-----
> From: Nancy Palmquist [mailto:nlp at vss3.com]
> Sent: Wednesday, April 09, 2008 12:06 PM
> To: rkreiss at gccconsulting.net
> Cc: 'Filepro-List at Lists. Celestial. Com'
> Subject: Re: dim
>
> 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.
> >
> > Anyone else agree? May need to make this a wish list item
> >
> >
> > Richard Kreiss
> > GCC Consulting
> > rkreiss at gccconsulting.net
> >
> >
> >
> >
> >
> > _______________________________________________
> > Filepro-list mailing list
> > Filepro-list at lists.celestial.com
> > http://mailman.celestial.com/mailman/listinfo/filepro-list
> >
> >
> Richard,
>
> It would be nice if a lookup could use a1 somehow.
>
> lookup file=myfile k=1 i=a -nx
>
> dim array(16):file(a1 )
> I would expect to see the values of a1 in the array.
>
> Is that what you wanted? This is a strange bit of logic.
>
> Or how about: if file(a1 ) eq "LALA" then do something
>
> I always wanted that logic.
>
> Or how about:
>
> xx=file(a1 ) where xx would then have a string of values with some
> delimiter
> from the A1 fields in the looked up file. I think the array match is
> cleaner
> but this would work also, just takes a little parsing.
>
>
> Did you put it on the wish list? If it still exists - that is. I have
> not had
> a message in some time to vote on any wish items. So I think it is
> gone.
>
> Nancy
> --
> Nancy Palmquist MOS & filePro Training Available
> Virtual Software Systems Web Based Training and Consulting
> PHONE: (412) 835-9417 Web site: http://www.vss3.com
Nancy,
This was just a summary. I have a file which originally has 10 associated
fields(3 - 12) and then I was asked to increase the associated fields to 20.
So I added the new fields making for a non-contiguous grouping.
>From another file I need all of the associated field values. This has
caused me to need to use 2 arrays and to check values against both arrays.
Not difficult programming but it would be simpler to use one array.
Now in thinking about, I'll just make the first array 20 elements and back
fill it with values from the second array.
Richard
More information about the Filepro-list
mailing list