One other way is to use conditional compilation. You write a block of code that certain parts will execute if the compilation variable is one value and execute another if its a different value, etc.
You can declare the compilation variable in the project properties under the Make tab - Conditional Compilation Arguments:VB Code:
#If iCompany = 1 Then 'Blah, blah, blah... #Else If iCompany = 2 Then 'Blah, blah, blah... #Else 'Blah, blah, blah... #End If





Reply With Quote