Results 1 to 3 of 3

Thread: Implementing Interface ???

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Chennai, India
    Posts
    17
    Hi

    I created one interface ( name I’ve given is Isave ) . I was trying to implement this interface. For this I declared the Implements keyword in the class , where I’m going to implement this interface. The interface name is appeared in left-hand (Object) drop down in the code window.
    None of the entries will be Isave. I mean When you select it, the right-hand (Procedure) drop down will NOT show the methods of the Isave interface.

    Pl. tell me the reason ??? what’s wrong with my code ??? I’m using VB6. any suggestions please ???

    Thanks

    Sanju

  2. #2
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224

    Wink Public or Private ?



    how did you define the function in the class ?

    If you have defined it as private .. like..

    private function mymethod()

    then it won't be listed externally.

    You should have to declare them as public.

    hope this helps.

  3. #3
    Guest
    Also, If you don't specify Private or Public, it automatically assumes that it's Public.

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