|
-
Dec 3rd, 2003, 06:33 AM
#1
Thread Starter
Addicted Member
Class and bas modules?
Hi,
I have a project with a class module and a bas module.
Most of my functions in the bas module is used by functions in the class module, which works fine.
I need to call a function in my class module from my bas module, how can I do this without creating a new instance of my class module in my bas module??
-
Dec 3rd, 2003, 06:58 AM
#2
-
Dec 3rd, 2003, 06:59 AM
#3
You obviously got to the function in the bas module through an instance of you class, right? So you should be able to just pass in a reference to the calling class object.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Dec 3rd, 2003, 07:53 AM
#4
Thread Starter
Addicted Member
Thanks!
Both great ideas, I went with the passing by ref method, works great.
-
Dec 3rd, 2003, 07:57 AM
#5
Lively Member
Awww
Some day someone will use one of my ideas...!
Waaa
[vbcode]On Error Goto Pub[/vbcode]
-
Dec 3rd, 2003, 08:35 AM
#6
Re: Awww
Originally posted by vbJoe
Some day someone will use one of my ideas...!
Waaa
I use your basic concept all the time when subclassing groups of controls. In that case, its the only way.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|