Hey,
How can I get the value of a property if i'm in a shared class?
I can't use Me as the object parameter.
Thanks,
MA
Printable View
Hey,
How can I get the value of a property if i'm in a shared class?
I can't use Me as the object parameter.
Thanks,
MA
There's no such thing as a Shared class. You might be in a Shared method of a class or you might be in a module. If you are in a Shared method then there is no current instance so of course you can't use Me, but then you if there's no current instance then you can't get a property value of the current instance via reflection either.
Are you saying, without actually saying, that you want to get the value of a Shared property of the current type?
I'm sorry, i completely miswrote that.
Yes, that is what I meant, hehe.
I figured it out.
Thanks,