Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call a procedure like a method syntax
Message
From
22/04/2009 12:43:33
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/04/2009 12:20:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01395833
Message ID:
01395919
Views:
75
>So you have a SEPARATE prg file for each Func/Proc?
>
>To me, there is some bene to have them all in one file, or at least grouping certain ones within perhaps a few different .prg files. It makes comparing and reviewing a little quicker since you can scroll up or down withing the file quickly, and Document View is some help also. You don't get that with separate files.


OTOH, if you put everything in one big prg file, all of it goes into the app, needed or not. Also, if you want a version of a function/procedure to apply to one app but a different version to another, you either have to yank it out from the big prg, or start bracketing the versions somehow or resort to other tricks. If you break it into a few prg files (by, say, purpose, category or whatever), there will always be borderline cases which you will think belong into one on odd days, and into another on even ones... so half of the time you'll be looking for it in the wrong place.

My recipe is simple: make them all methods of one big oSys class, so you can at least subclass it as needed, and keep it all in sys.prg, or do one function one prg.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform