Incorrect error message, odd array error.

William James McEachran billmc at dataffinity.com
Wed Jun 2 15:02:03 PDT 2004


The wierdness continues:

This is the simplified command line now in use:

dreport trcli -f rnd2 -s wjm -y '' -pc nocodes -p "|less"

In the debugger sitting on the following line,

Ä True ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Prc. Name: rnd2 Ä        If:  lia(12) eq chr("67"+np)
  22  Then:  ai=prffac[np]*lia(11)

Now, here's what everything contains.
Enter Expression >  lia(12)             þ |F|
Enter Expression >  np                  þ |  3|
Enter Expression >  chr("67"+np)        þ |F|
Enter Expression >  ai                  þ |         |
Enter Expression >  prffac[np]          þ |   .00200000|
Enter Expression >  lia(11)             þ |   5000.00|

Careful readers will notice that np isn't (1,.0), it's now (3,.0) -- I've
been trying lots of things.

When I run the line I get the following error:
---------------------------------------------
*** A filePro Error Has Occurred ***

Array Index Out of Range: dim prffac(7) -- Index: -35

Output Processing
Line Number: 22

ai=prffac[np]*lia(11)
^
Process contains a syntax error at position indicated.
-----------------------------------------------

When np was (1,.0) the "out of range" number was "0".
Any clues?




-- 
Bill McEachran


More information about the Filepro-list mailing list