Not sure if it's the best thing to do but here's what I did
I inserted these lines before the ascan
if alen( taArray, 2) >= lnColumn
lnRow = ascan(taArray, tuValue, lnStartElement, -1, lnColumn, lnFlags)
else
lnRow = 0
endif
I have'nt done a lot of tests but for those I did it seems to work ok.
Perhaps Doug or anybody else familiar with SFR can tell me if this looks ok.
>SFR51F
>
>Error 1234
>Subscript is outside defined range
>lnRow = ascan( taArray, tuValue, lnStartElement, -1, lnColumn, lnFlags)
>line 51
>Method: sfutility..arrayscan
>
>I got this error after removing 3 grouping that I previously defined for a report
>
>With the debugger I see that lnRow = .f.
>
>and under the test for the value on lnRow there are some comment lines
>
>*** WORKAROUND FOR BUG IN VFP: with return row flag set, return value is 1 too
>*** high if the search column is the last one.
>
>So could it be that what used to be a bug in VFP has been corrected and now because of that bug correction it causes a bug in SFR?
>
>How do I fix this?
*******************************************************
Save a tree, eat a beaver.
Denis Chassé