Hi i have 2 classes say class1,class2
class2 has a save method and class1 inherits class2 . I want to know if its possible to detect the type of class that used the save method.
ps:i cannot have any arguments on save method
thnks
Printable View
Hi i have 2 classes say class1,class2
class2 has a save method and class1 inherits class2 . I want to know if its possible to detect the type of class that used the save method.
ps:i cannot have any arguments on save method
thnks
VB Code:
Public Sub Save() Msgbox(TypeName(Me)) End Sub
Just refer to Me which willbe the current object that makes the call.