Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ER: functions in methods
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
ER: functions in methods
Miscellaneous
Thread ID:
00569195
Message ID:
00569195
Views:
52
I would like to once again vent my frustration with the message: "Methods and events cannot contain nested procedures or class definitions."

I can understand that the format that methods are stored in the vcx might make it difficult, but I am sure it can be overcome. Might have to start enforcing the use of ENDFUNC.

Yes, I can work around it by adding yet another method, but I think things could be better organized if we had the ability to have a function in a method.

For instance: I have a class with 10 methods A-J. Method A needs to call K() and L(). So I add 2 more methods. Now I have 12 (A-L), and there is no clear indication that A, K and L are related, and K and L are not used by anything else. I can help the situation by naming them Ak() and Al(), but that is goofy.
Next
Reply
Map
View

Click here to load this message in the networking platform