VB-WEB: Property vs. Public Shared Variable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abev
    New Member
    • Jan 2008
    • 22

    #1

    VB-WEB: Property vs. Public Shared Variable

    I am still trying to get my arms around properties and why I should use them more. But I just cannot understand when I should be using properties as opposed to just declaring a 'public shared' variable?

    For example, if I am creating an MDI app and I want to store the CustomerID that gets passed between various Customer Detail forms, why not just set the CustomerID variable to the customerid on the MDI parent?
Working...