Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ER: functions in methods
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
ER: functions in methods
Divers
Thread ID:
00569195
Message ID:
00569195
Vues:
53
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform