Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Public test As String
  2.  
  3. Private Sub Class_Initialize()
  4. Call setTest
  5.  
  6. Dim b As Class2
  7. Set b = New Class2
  8. End Sub
  9.  
  10. Public Property Set Classed(ByRef vClass As Class1)
  11. Set vClass = Me
  12. End Property
  13.  
  14. Public Sub setTest(t As String)
  15. test = "Sam"
  16. End Sub
  17.  
  18. Private Sub Class_Initialize()
  19.  
  20. Dim newClass As Class1
  21.  
  22. newClass.Classed = newClass
  23. ' Want to be able to access the test String from class 1
  24.  
  25. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement