Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with SFR editing a report
Message
From
24/02/2006 10:52:20
 
 
To
24/02/2006 10:04:44
General information
Forum:
Visual FoxPro
Category:
Stonefield
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01098862
Message ID:
01098906
Views:
10
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é
Previous
Reply
Map
View

Click here to load this message in the networking platform