Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax error tracing
Message
From
01/12/2016 17:46:26
 
 
To
01/12/2016 16:58:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01644145
Message ID:
01644225
Views:
42
>The .ERR file is simply reporting the source for a line of code it can't compile. If VFP is trying to compile that line, AFAIK "ADD OBJECT" is not a valid VFP command.
>
>If that's the case, where did it come from? Do you recall how you added that line to your class?

If I'm not mistaken, ADD OBJECT is a clause that could appear in DEFINE OBJECT / ENDDEFINE block -- which means it really only should appear if defining classes programmatically rather than visually in a VCX. This would lead me to think at some time Class Browser was used to view the source code, then some of it was copy/pasted into the snippet window within the VCX class.

Of course once you've mucked about with a VCX enough, you're likely to damage the VCX further rather than repair it (especially if you open the VCX as a DBF and muck with the contents of memo fields directly -- don't ask how I know this). It's usually easier to restore a good copy from a backup at that point.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform