N
Nemisis
Hi everyone,
Can anyone tell me if it is possible to pass in a property of an object
into a sub, and within that sub, find out the name of the item that was
passed along with the property name??
Example would be
......Code
Dim ObjA As New ObjectA
Me.CallSub(ObjA.Name)
Then within the sub, it should work out that the object passed in was
of type ObjectA, and the property was Name.
Is this possible? Cna someone point me in the right direction, or an
article i can read.
The reason i would like to do this is because i have giving users
access to renaming in my application, and the names are based on Table
fields at the moment, but i would like to move this to the class and
property instead.
Thanks
Can anyone tell me if it is possible to pass in a property of an object
into a sub, and within that sub, find out the name of the item that was
passed along with the property name??
Example would be
......Code
Dim ObjA As New ObjectA
Me.CallSub(ObjA.Name)
Then within the sub, it should work out that the object passed in was
of type ObjectA, and the property was Name.
Is this possible? Cna someone point me in the right direction, or an
article i can read.
The reason i would like to do this is because i have giving users
access to renaming in my application, and the names are based on Table
fields at the moment, but i would like to move this to the class and
property instead.
Thanks