Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Organizing classes

Status
Not open for further replies.

wawalter

Programmer
Aug 2, 2001
125
US
I have recently started creating non-visual classes and I would appreciate some suggestions on how to organize them.

Currently, I have them all in one prg file that I do a set procedure to in the main of my program. The problem is that file is getting quite long and is hard to navigate around.

I have thought about creating a separate file for each class, like VB does, but then I will have a lot of set proc statements.

What is the best way to organize my mess?

Thanks for your input,
Bill
 
Hi Bill,

In my opinion you'd be better off using the Class Designer to create these classes rather than doing it all programmatically. They would then be automatically stored in a class library (.vcx) and would be available at design time wherever they're needed.

Jim
 
Hi wawalter,

What I do is the following:

I design all my classes (at least 99%) as visual classes. When I make a build, I convert my visual classes to coded classes using the classbrowser and put them in one PRG that is compiled to one FXP file.
At runtime I only have to distribute one FXP and a very small EXE (and have to use SET PROCEDURE TO only once, whcih speeds up things uite fast, especially when you are using a lot of classlibraries).
At desiogn time I use the visual classes.
I use a project hook class to influence the build process in which the visual classes are converted to code classes.

Have a look at my project and download the source code to see how I do this (see my signature).

HTH,
Weedz (Wietze Veld)
My private project:Download the CrownBase source code !!
 
Thanks for all your help.

One other question, do I use the "ActiveDoc" as my base class when I first create a new class?

Thanks again,

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top