Results 1 to 2 of 2

Thread: type of class that made the call

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    didn't decide yet
    Posts
    222

    type of class that made the call

    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
    Come and get our ISDN CallerID http://www.3wm.biz

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    VB Code:
    1. Public Sub Save()
    2.    Msgbox(TypeName(Me))
    3. End Sub

    Just refer to Me which willbe the current object that makes the call.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width