Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax error tracing
Message
From
01/12/2016 17:06:01
 
 
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:
01644218
Views:
35
>>>>>Boris (and then Gregory) gave you very simple and correct instructions - why did you try to go in a completely wrong direction?
>>>>
>>>>Naomi,
>>>>
>>>>I did follow the instructions of Boris and Gregory:
>>>>Have modified my class, and recompiled and now I can read that most of my addobjects error, even the most simple one, I gave an example, here is an other one:
>>>>
>>>>ADD OBJECT frmaanvraag.kvbasepageframe1.page1.line7 AS line WITH  BorderWidth = 3,  Height = 258,  Left = 867,  Top = 251,  Width = 0,  ZOrderSet = 41,  Name = "Line7"
>>>>Error in line 474: Syntax error.
>>>>
>>>>sorry, but I can't see anything wrong. Do you?
>>>>
>>>>I am afraid I am facing a corrupt .VCX file and shall have to reconstruct my carefully constructed class.
>>>
>>>What is that code? Is it something generated within the VCX, or is it method code expected to be run directly by the VFP interpreter?
>>>
>>>If the latter, is ADD OBJECT a valid VFP command? There's an .AddObject() method but it's significantly different.
>>
>>Hi Al,
>>It is one of the many lines in my .err file.
>>Generated by VFP
>
>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?

ADD OBJECT is a DEFINE CLASS clause that must syntactically follow a DEFINE CLASS statement. So, the relevant line here is not the ADD OBJECT line by itself, but the previous one (or ones...).
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform