How to call one VB class module method from another class in an ActiveX dll 
Author Message
 How to call one VB class module method from another class in an ActiveX dll

I am quite new to VB-COM web development.  We are writing a new e-commerce
app for a client.  We would like to put some utility functions- i.e. one
that formats addresses, etc. into a class named 'clsUtilities' in our VB
project.  How do I call the FormatAddress function in clsUtilities from a
second class, 'clsMyApp' in the same VB project?  I will need to be able to
pass in values required by the FormatAddress function, such as name,
address, city, state, zip.

Thanks in advance,
Diana



Sat, 02 Aug 2003 05:30:01 GMT  
 How to call one VB class module method from another class in an ActiveX dll
Would you be better putting the Utility functions in a Standard Module and
making them Public.
Making the call to these functions is then just the same as with a standard
app.

That is how I do it

Paul Halse


Quote:
> I am quite new to VB-COM web development.  We are writing a new e-commerce
> app for a client.  We would like to put some utility functions- i.e. one
> that formats addresses, etc. into a class named 'clsUtilities' in our VB
> project.  How do I call the FormatAddress function in clsUtilities from a
> second class, 'clsMyApp' in the same VB project?  I will need to be able
to
> pass in values required by the FormatAddress function, such as name,
> address, city, state, zip.

> Thanks in advance,
> Diana



Mon, 04 Aug 2003 02:56:54 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Public Method in a class calling a private method in same class yields ByRef error

2. Calling methods across classes within ActiveX-Dll

3. Using a UDT in a Class method, how to make a class module public

4. Calling a Class Module Method

5. Class modules 97 - Refering to array within a custom class module

6. Accessing procedures of a class module from another class module

7. How to call a sub defined in DLL module not belong to any class

8. public variables in ActiveX dll class module?

9. WithEvent ActiveX as member of a VB class module

10. VB Modules/Class Modules

11. Class modules faster than normal ones ?

12. How to invoke a method in a class module using CALLTHIS()

 

 
Powered by phpBB® Forum Software