Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Statement not valid in a class definition error
Message
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01241321
Message ID:
01241324
Views:
31
>All of a sudden I'm getting a bizarre error when I run this program I've been working on. It started after I had to close out VFP development environment because of an some error (don't remember what it was).
>
>The error I am now getting is (btw-before I was nowhere near or connected to this code):
>"Statement is not valid in a class definition."
>
>When I suspend to the debugger the line it stops on is a line within a method called SetReportType.
>
>This is the code:
>
>Lparameters tcUserTierClass, tcReportName, tnOrder
>
>
>With this
>	*instantiate userservice object and assign to property
>	.oUserTier = NewObject( tcUserTierClass, tcUserTierClass + ".prg", "", thisform.DataSessionId)
>	.creportname = ALLTRIM(tcReportName)
>EndWith
>
>
>It's in visual class, so I couldn't have added this outside any method, property or event!
>
>Did something get corrupted? I tried recompiling the project several times to no avail.
>
>I'm stumped (again).
>
>Any ideas?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform