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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional compiling and forms

Status
Not open for further replies.

c567591

MIS
Aug 12, 2002
67
US
I want to use conditional compilation to compile my code for a 2nd customer type from the same code base so I don't have to make 2 changes everytime.
I get that part fine.
What I don't get or see how to do is to handle the forms which may be different. How do I conditionally handle them properly?
 
Different forms require different forms. Some thoughts:

I presume you're using {$IFDEF} throughout to handle the separate compilations. Do the same with your forms, give them different names, but change the var reference in the interface section so that they're both the same. That way you don't have to modify the rest of your code. You'll probably also have to change your project file too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top