|
-
Mar 30th, 2003, 04:08 PM
#1
Thread Starter
Frenzied Member
Calling a Sub
I'm trying to call a Sub that is located in a module, from a click event in my form. When I debug the app, it just goes through the code, but never goes to the procedure...any suggestions?
in form...gets executed on button click event
VB Code:
Module.edit_check(txtItem.Text, txtActivity.Text, txtJob.Text)
in module
VB Code:
Public Sub edit_check(ByVal b As String, ByVal c As String, ByVal d As String)
-
Mar 30th, 2003, 05:08 PM
#2
Sleep mode
Weird !
Save your proj , close the IDE , run it again and see what happens?
-
Mar 30th, 2003, 09:56 PM
#3
PowerPoster
I think the word Module is a keyword and can't be used. Change your module to a different name and try it.
-
Mar 31st, 2003, 04:44 AM
#4
Fanatic Member
indeed, the word module may notbe used al a name of a module, you'd better call it Module1 or something similar. Then It should work
- Use the thread tools to Mark your Thread as Resolved when your question is answered.
- Please Rate my answers if they where helpful.
-
Mar 31st, 2003, 05:03 AM
#5
Sleep mode
You can use your sub directly without referring to the module name if it's publicly declared .
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
|