|
-
Mar 20th, 2003, 07:37 PM
#1
Thread Starter
Need-a-life Member
Modules in OCX
How do you get a Public Sub in a module to be seen in an UserControl. I need a module to write a sub that would be called with "AddressOf". The problem is that the UserControl doesn't seem to see the module. Any ideas?
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Mar 20th, 2003, 09:22 PM
#2
Addicted Member
is the module in the same ocx as the usercontrol?
if you made an ocx and the module is in your main code
then you wont have default access to the functions..(you
might be able to from Usercontrol.Parent. but even if
it worked thats not a good way to go.)
if the module is compiled into the same ocx as the
usercontrol you shouldnt have a problem with accessing
its functions/subs
Free Code, papers, tools, and more
http://sandsprite.com
-
Mar 20th, 2003, 09:30 PM
#3
Addicted Member
one other thought i just had, is if the module is in the same
ocx but intellisense wont work with the module or if it wont
autocomplete, that can happen when you have some kinds of
errors in your module code.
the following type declaration would cause such an error
Public Type i
print As Integer
for As Long
End Type
print and for are reserved words, but in the type declare, they
dont turn red, but you have now lost intellisense for the entire
library they are in. I forget other examples where I have had this happen...I think there is another situation it does in too though
Free Code, papers, tools, and more
http://sandsprite.com
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
|