Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is it possible into a sub to change the Danger's Property Scope and how?

Status
Not open for further replies.

WomanPro

Programmer
Nov 1, 2012
180
GR
I have the following structure and I have a question, is it possible into a sub to change the Danger's Property Scope and how? Any suggestions please?
Any help will be much appreciated. Thank you so much in advanced.

Code:
Public Structure EachCpl2PlayLonelies
   Public Cpl2Play As CoupleToPlay
   Public CntLoneliesBfr As Byte
   Public CntLoneliesAftr As Byte
   Private m_Danger As Boolean
   Public Property Danger() As Boolean
     Get
        Return m_Danger
     End Get
     Set(ByVal value As Boolean)
         m_Danger = value
     End Set
   End Property
End Structure

For example
Code:
Public Sub ChangeScope(ByVal Cpl2PlayLonelies As EachCpl2PlayLonelies, ByVal flag As Boolean)
   If flag Then
      'Make the property invisible
   Else
      'Let the property as it is
   End If
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top