+ Reply to Thread
Results 1 to 2 of 2

Class Module & Module

  1. #1
    Liedson31
    Guest

    Class Module & Module

    hello all

    I have a class module that have a function "Function CALCULATE_ALL()".
    it is possible to call it from another function in the module.

    i´ve tried the tradicional method call CALCULATE_ALL and it gives me an
    error..it doesn´t recognize it...

    i already tried the "Public Function CALCULATE_ALL" and i doesn´t works
    either....it is possible to invoce a function that is in a class_module from
    the module


  2. #2
    Robert Bruce
    Guest

    Re: Class Module & Module

    Roedd <<Liedson31>> wedi ysgrifennu:


    > I have a class module that have a function "Function CALCULATE_ALL()".
    > it is possible to call it from another function in the module.
    >
    > i´ve tried the tradicional method call CALCULATE_ALL and it gives me
    > an error..it doesn´t recognize it...
    >
    > i already tried the "Public Function CALCULATE_ALL" and i doesn´t
    > works either....it is possible to invoce a function that is in a
    > class_module from the module


    You need first to create an instance of your class. Then you can call its
    methods:

    Dim objInstance as new MyClassModule 'or whatever your class is called.

    objInstance.CALCULATE_ALL

    --
    Rob

    http://www.asta51.dsl.pipex.com/webcam/

    This message is copyright Robert Bruce and intended
    for distribution only via NNTP.
    Dissemination via third party Web forums with the
    exception of Google Groups and Microsoft Communities
    is strictly prohibited and may result in legal action.



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1