• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

8. Programming > 88. Use Custom Enumerations

Use Custom Enumerations

Use familiar names, instead of memorizing equivalent numbers, to avoid errors and speed up coding.

Having a list of properties and methods appear while typing really helps when you’re coding. For example, entering Application in a code module and then entering a period opens up a list of methods and properties that belong to the Application object.

You can use this same helpful facility to provide you with constants that are particular to your project or business. Take, for example, an application that has to take the department code into account for some specific processing. Each department has a unique code number, but the numbers themselves are meaningless. This makes the code numbers difficult to remember.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint