|
-
Jul 30th, 2001, 10:36 AM
#1
Can someone explain
I have a piece of code that will be used by 18 different forms. Can someone post a quick example of how and ware i would put the code in only one place so all forms can call it.
Thanks
-
Jul 30th, 2001, 10:37 AM
#2
Frenzied Member
Why not place your code in a module and have each form call it.
Mega.
"If at first you don't succeed, then skydiving is not for you"
-
Jul 30th, 2001, 10:41 AM
#3
that is what I want to do
That is what I want to do, but I have never done that. I just wanted a quick example of how to set it up and what the command is to call it. Thats all
Thanks
-
Jul 30th, 2001, 10:42 AM
#4
-
Jul 30th, 2001, 10:45 AM
#5
Frenzied Member
Create a new module in your project and we will call it modFormcode
In the modules code type the following
Public sub frmEvent()
.....code goes here...
End sub
Then in the forms event that you want to trigger just place the command
frmEvent and that will pass control to the module. When the module has finished, control will be passed back to the form.
Mega.
"If at first you don't succeed, then skydiving is not for you"
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
|