Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Breaking WebProcess.prg into smaller .prg's

$
0
0
Breaking WebProcess.prg into smaller .prg's
Web Connection
Breaking WebProcess.prg into smaller .prg's
May. 29, 2013
05:29 am
3SO0BSE2YShow this entire thread in new window
Gratar Image based on email address
From:Jeff Barefoot
To:All
My WebProcess.prg contains all of the custom functions that do the work and call the individual pages in my WebConnect application (pretty standard...I think that's the way that it would normally work). It's working just fine, but becoming a little unwieldy. It currently contains 30 custom functions, and about 4000 lines of code. Not huge...I know...but I'd love to be able to organize my functions by type (reporting, security, utility, viewing data, etc).

What is the "Best Practice" for WebProcess? Is it easier to keep everything in a single .prg and bounce up and down to access, or is there an easy way to create multiple .prg's to contain the neatly organized functions? If there is an easy way to make the change, can you point me to an example of how to make it work?

It's not a big deal, and I don't want to spend a lot of time on it....was just hoping that there might be a quick way to reorganize my stuff.

Thanks,

Jeff


Viewing all articles
Browse latest Browse all 10393

Trending Articles