Calling Methods in Sibling Class Module
- From: "Don Miller" <nospam@xxxxxxxxxx>
- Date: Tue, 9 Aug 2005 10:31:12 -0500
I have a VB component that has two class modules, one for reading/displaying
data "read", and one for writing data "write" (transactional), and they are
both in the same DLL. When executing a "write" method, I want to return a
string generated by "read" method. When I tried to call the read method
within the write class using the object, I got an error saying I couldn't.
Somehow I figured out that if I add a .bas module with the line "Public
ReadFunctions As New Read" I can call the function in the "sibling" class
such as ReadFunctions.method.
Is this the proper way to do this? Are there better methods? I'm a little
worried about a Public variable in a bas module (from things I read about
threading????)
Thanks.
.
- Follow-Ups:
- Re: Calling Methods in Sibling Class Module
- From: Ralph
- Re: Calling Methods in Sibling Class Module
- Prev by Date: Re: Need to get info from USB
- Next by Date: Re: Calling Methods in Sibling Class Module
- Previous by thread: Re: Need to get info from USB
- Next by thread: Re: Calling Methods in Sibling Class Module
- Index(es):
Relevant Pages
|
Loading