View Single Post
  #5 (permalink)  
Old September 29th, 2011, 08:27 PM
zavodney zavodney is offline
Authorized User
Points: 195, Level: 3
Points: 195, Level: 3 Points: 195, Level: 3 Points: 195, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Location: Tennessee
Posts: 46
Thanks: 27
Thanked 0 Times in 0 Posts
Default

I commented out the _Points declaration and then tried to access it later. Could not access it. I created a new project and the first entry was to declare the Points property. Still no auto creation. I then tried the names PPoints and PlayerPoints and still no auto creation. I then created the Level property and the Get was provided automatically. Both of these properties were integers so I have to assume that I am infringing on some predefined Object. The downloaded code works fine. I didn't see anything in the Object Browser about PlayerPoints. Here's the code I used:

Code:
Public Class Player

    ' Create the Points property
    Public Property PlayerPoints As Integer


    ' This is created after the POINTS property to 
    ' see if it works on something else.
    ' Return the Level (Point \ 10)
    Public ReadOnly Property Level As Integer
        Get

        End Get
    End Property

End Class
Reply With Quote