DIM problem

Bruce Easton bruce at stn.com
Fri Feb 24 07:53:12 PST 2012


I just noticed that there is a revision history entry for this problem 
in the
5.6.11 release notes (#1150).  On 5.7 the new feature of mapping an
array against (possibly non-contiguous) associated fields seems to be
working ok.  (Apparently, before 5.6, and this new feature, the syntax
checker would not allow you to even map an array against an associated
field.)

Bruce

On 2/23/12 7:52 PM, Jean-Pierre A. Radley wrote:
> FilePro 5.6.10D4.
>
> Here is part of a map:
>
> 	31 - Q0) 1999 quantity sold:  7:.0:
> 	32 - Q0) 2000 quantity sold:  7:.0:
> 		....
> 	44 - Q0) 2012 quantity sold:  7:.0:
> 	45 - Q0) 2013 quantity sold:  7:.0:
>
> Here's the start of a processing table:
>
> 	  If: 'Associated Fields Q0 are for QuantitySold 1999 to 2013
> 	Then: dim QSold(15):Q0
>
> When running the processing, the first record encountered wants to use
> this array with a value of "12".  But this error occurs:
>
> 	*** A filePro Error Has Occurred ***
> 	Array Index Out of Range: dim Qgroup(-16512) -- Index: 12
> 	Output Processing
> 	Line Number: 7
>
> 	Qgroup(i) = Qgroup(i) + mon(A5))
>
> 	Process contains a syntax error at position indicated.
>
> (I see no position indicated...)
>
> I have no problem if I change that snippet of the processing table to:
>
> 	  If: 'fields 31 to 45 are for QuantitySold 1999 to 2013
> 	Then: dim QSold(15):31
>
> Why does mapping the array to the associated field name fail?
>
> BTW: t'would be a major help if fP error messages ALSO showed the
> file name and table name.
>



More information about the Filepro-list mailing list