Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
External Arrays and Reports
Message
 
 
To
18/12/2001 15:21:30
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00595795
Message ID:
00595825
Views:
23
>I tried rebuilding a VFP 5 application in VFP 7. Found 2 problems.
>1. Field list was missing a comma (worked in VFP 5, VFP 7 seems more fussy). Easy to fix.


This change and some others are addressed in VFP help http://msdn.microsoft.com/library/en-us/fox7help/html/foconBehaviorChangesSinceVisualFoxPro60

>2. A form creates an array which is then used in a report. Works in VFP 5, get an error message in VFP 7 when I try to build the applcation "unable to find unknow ARRPTQTY (the erray) in the report (frx file). the existing code is
>
>
> PUBLIC DIMENSION aRptQty( 3, 4 )
>
> EXTERNAL ARRAY arrayRQty
> ThisForm.GetRptQty( @aDtlQty, @aRptQty )
> RELEASE aDtlQty
>
>How do I fix it??


The line PUBLIC DIMENSION aRptQty( 3, 4 ) creates public variable DIMENSION and public array aRptQty( 3, 4 ) in VFP 6. It should generate an error in VFP 7 because DIMENSION isn't a legitimatee clause of the PUBLIC command. You can change it to
PUBLIC aRptQty( 3, 4 )
* or 
PUBLIC ARRAY aRptQty( 3, 4 )
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform