Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Intermediate
Jan 30, 2001

Encapsulate GetSettings() and SaveSettings into Property Procedures


Encapsulating settings and registry calls into property procedures is a good way to ensure valid entries. This method manages errors while including them in IntelliSense.

Example:
  
        'mdlSettings 
        Option Explicit 
        Public Property Get TipAtStartUp() As Boolean 
            TipAtStartUp = GetSetting(App.Title, 
Andreas Hillqvist
 
Comment and Contribute

 

 

 

 

 


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

 

 

Sitemap