dim

Nancy Palmquist nlp at vss3.com
Wed Apr 9 09:05:39 PDT 2008


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


More information about the Filepro-list mailing list