Is it possible for my module to be able to test whether a sub exists on another form before calling it?
Thanks in advance
:D ;) :p
Printable View
Is it possible for my module to be able to test whether a sub exists on another form before calling it?
Thanks in advance
:D ;) :p
Why would you need to do that?
Just incase you had memory lapses when coding ;)Quote:
Originally posted by MartinLiss
Why would you need to do that?
Sorry Paul :)
Bruce.
Perhaps you should explain what you're trying to accomplish?
PaulTilley
I don't believe so... But the compiler will.
No its not because I have a bad memory.
No Its not because I have a bad memory.
Oops...
NE Way, its because from a module I need to call a sub on a form. There are many forms with the same sub name within. Some forms do not have this sub at all, and this is what I need to test.
Your comments have made me realise though, that there is another better way of approaching this problem.
Im about to check it out now.
Ta all.
Calling a form's sub from a module. *sounds* a little inefficient to me, and I'm sure there's a more optimized way of doing the same.Quote:
Originally posted by PaulTilley
No its not because I have a bad memory.
No Its not because I have a bad memory.
Oops...
NE Way, its because from a module I need to call a sub on a form. There are many forms with the same sub name within. Some forms do not have this sub at all, and this is what I need to test.
Your comments have made me realise though, that there is another better way of approaching this problem.
Im about to check it out now.
Ta all.
But anyways, you can delcare the sub as public, and call it like
Form3.SubName()
HTH
He mendhak, Who kissed you.... No that's all wrong... Kiss a frog it turns into a Prince:)
Good looking Avatar:cool: