Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Aug 7, 1997



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Maintaining Constants

I like to use the Constant.txt file Microsoft has been kind enough to provide. For a new project, copy Constant.txt to a new file such as MyConst.txt. Place MyConst.txt in the same directory as the MAK file and then include MyConst.txt in the project. In debug mode open MyConst.txt and do a FIND on the string Global and replace with 'Global. MyConst.txt is changed to a large comment file.

When a new constant is required, check MyConst.txt to see if Microsoft has defined it. If it is there, then create it by removing the quote. This keeps all of the Microsoft constants in context and makes the program easier to maintain.

Stan Mlynek
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date