Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax error tracing
Message
From
01/12/2016 17:12:51
 
 
To
01/12/2016 17:06:01
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:
01644221
Views:
29
>>>>>>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...).

Or there may be a missing ENDDEFINE.

Sounds like the next step is to open the VCX as a table and scan memo field(s) to look for improperly configured DEFINE CLASS... ENDDEFINE blocks.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform