Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To Class or not to class
Message
De
10/04/2018 09:00:04
 
 
À
10/04/2018 06:52:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01659269
Message ID:
01659286
Vues:
59
>I am about to convert a huge inhereted prg file into one .vcx and wonder. The prg file consists of multiple procedures and multiple functions. Should I put each individual function in a separate property and also should I put each individual function in a seperate function?

In the November FoxRockX, I had an article with code to break a procedure file into separate PRGs.

My take on this is that if the functions operate on shared data, then it makes sense to create a class and store the data as properties and make the functions methods. If the functions are independent of each other, then make them stand-alone functions.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform