Microsoft KB Archive/309122

= PRB: VFP 6.0 Application Framework Class Does Not Compile Under VFP 7.0 =

Article ID: 309122

Article Last Modified on 10/17/2001

-

APPLIES TO


 * Microsoft Visual FoxPro 7.0 Professional Edition

-



This article was previously published under Q309122



SYMPTOMS
When you attempt to compile the _FRAMEWK.VCX from the Visual FoxPro (VFP) 6.0 application framework in VFP 7.0, you may receive the following error:

Error in line 3729 of _application.validatemetatable (record 103): Syntax error.

This also occurs when rebuilding a project that uses the VFP 6.0 application framework.



CAUSE
The following line is contained in the ValidateMetaTable method: LOCAL lcTable, lcMessage, lcAlias, liSelect, ; llReturn, liTagCount laRequired[1], laKeys[1]; liFound, llExactOff Although the syntax is valid for VFP 6.0, VFP 7.0 does not allow you to omit the commas between the variables.



RESOLUTION
To resolve this problem, follow these steps:  Determine the location of the copy of _FRAMEWK.VCX that you are using.  Run the following line, replacing the path as necessary: MODIFY CLASS _application ; OF (&quot;c:\Program Files\Microsoft Visual Studio\VFP98\Wizards\_FRAMEWK&quot;) ; METHOD ValidateMetaTable  Add the missing commas to line 8.



STATUS
This behavior is by design.



MORE INFORMATION
In VFP 7.0, the LOCAL command is enhanced to allow you to declare variables as being particular types, for use with IntelliSense. Because this syntax requires spaces within a single variable declaration, the older syntax that allows spaces to separate variables is no longer valid.

To reproduce this behavior, run the following code, changing the path as necessary if you did not install VFP 6.0 to the default location: lcPath = &quot;c:\Program Files\Microsoft Visual Studio\VFP98\Wizards\_FRAMEWK&quot; COMPILE CLASSLIB (lcPath + &quot;.vcx&quot;) MODIFY FILE (lcPath + &quot;.err&quot;)

