Accesing Another Class Methods
Yooo, Super-askingdude here!
Is there a way to access Class methods and variables without using the Shared statement or the New statement? Here's my code:
Do I have to create a new instance of BigClassy within Structy to access the current value of vPublicVariable? (because I assume that doing so will erase it)
This is like melting my brain... I don't know how to achieve my goal here.
Well, I hope someone will help me!
Love!
Yooo, Super-askingdude here!
Is there a way to access Class methods and variables without using the Shared statement or the New statement? Here's my code:
Code:
Public Class BigClassy
Public vPublicVariable As Integer
Public MyStructy As Structy ' I'm not sure if I have to use NEW here
End Class
Public Structure Structy
' Creating something like "Public BC as new BigClassy" here will do?
Public Sub FindBigClassyVariable()
BigClassy.vPublicVariable = 100 ' This returns an error of course
End Sub
End Structure
Do I have to create a new instance of BigClassy within Structy to access the current value of vPublicVariable? (because I assume that doing so will erase it)
This is like melting my brain... I don't know how to achieve my goal here.
Well, I hope someone will help me!
Love!
Last edited: