Using classes and modules - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Using classes and modules

bsaucerbsaucer Posts: 40Member
I recently wrote a VB application which refers to a class and a module (each in separate VB files). I am now writing an ASP.Net web app and would like to use the same class and module in this application. However, the main code cannot recognize the class or the module, and they cannot recognize each other. Am I missing something?

Comments

  • iwilld0itiwilld0it Posts: 1,134Member
    - How are u using the class?
    - Are your class and modules defined in a namespace?
    You may have to import the namespace depending on how you are using the class.


    : I recently wrote a VB application which refers to a class and a module (each in separate VB files). I am now writing an ASP.Net web app and would like to use the same class and module in this application. However, the main code cannot recognize the class or the module, and they cannot recognize each other. Am I missing something?
    :

  • bsaucerbsaucer Posts: 40Member
    The class contains properties, methods, and operators. I am creating instances of the class and calling its members.

    There are two modules. One works in conjunction with the class. The second module uses the class and calls methods in the first module. Each module has public methods. The web app calls a method in the second module.

    I tried putting the class and module in namespaces and importing them in the web app, and also importing the first namespace in the second. However, the files still don't recognize each other's namespaces. It's as if each file is isolated from the others.

    : - How are u using the class?
    : - Are your class and modules defined in a namespace?
    : You may have to import the namespace depending on how you are using the class.
    :
    :
    : : I recently wrote a VB application which refers to a class and a module (each in separate VB files). I am now writing an ASP.Net web app and would like to use the same class and module in this application. However, the main code cannot recognize the class or the module, and they cannot recognize each other. Am I missing something?
    : :
    :
    :

Sign In or Register to comment.