Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax error tracing
Message
From
02/12/2016 10:10:02
 
 
To
02/12/2016 08:29:35
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:
01644256
Views:
49
>>Hi,
>>
>>What I did sofar:
>>opened the form in classbrowser ->opened the classlib ->selected the class and clicked View Class Code.
>>
>>Saved the code to myform.prg
>>added the lines at the beginning (just to show the form)
>>
>>loTest = Createobject("frmaanvraag")
>>loTest.Show(1)
>>
>>
>>And most of my objects gave an error, even the most simple object as a label:
>>
>>ADD OBJECT frmaanvraag.kvbasepageframe1.page1.kvbaselabel3 AS kvbaselabel WITH  FontSize = 8,  Caption = "Naam :",  Height = 17,  Left = 61,  Top = 74,  Width = 43,  ZOrderSet = 11,  Name = "Kvbaselabel3"
>>
>>Error in line 134: Syntax error.
>>
>>Am I facing a corrupt frmAanvraag.vcx?
>>Since > 150 objects on this form, I am not happy to reconstruct.
>>Also what is the syntax error ?
>>
>>Regards,
>>
>>Koen
>
>Hi Koen:
>
>Did you try what I've sugested? You can't generate REAL or modifiable PRG code with the Class Browser, but you can do modifiable (not compilable) PRG-like code with FoxBin2Prg.
>
>Others did fix variuos problems with classes with it.

Fernando,
Hmm I was not aware I could not generate modifiable prg code with the Class Browser. Since I was looking for a quick and dirty solution to repair my form I had, seems now, wrongly decided not to take your route.
Meanwhile I have reconstructed the form, for almost 75%, with an other 2 hours 100% should be done.
On the other hand I will surely, since I still have that corrupted form on my HD, your solution also next.
I will report back with my experiences.
Thanks and regards,
Koen
Previous
Reply
Map
View

Click here to load this message in the networking platform