Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To Class or not to class
Message
From
10/04/2018 09:00:04
 
 
To
10/04/2018 06:52:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01659269
Message ID:
01659286
Views:
60
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform