OldManRiver Posted October 4, 2005 Share Posted October 4, 2005 All,New to VBScript so trying to learn about naming conventions.I know I can create subroutines inside of a script, but don't know:1. If the script itself has to have a name?2. How to call the script and/or subroutines from a button by name?3. How to work with Modules and Class Modules in VBScript?OMR Link to comment Share on other sites More sharing options...
OldManRiver Posted October 6, 2005 Author Share Posted October 6, 2005 I know I can create subroutines inside of a script, but don't know:1. If the script itself has to have a name?2. How to call the script and/or subroutines from a button by name?3. How to work with Modules and Class Modules in VBScript?What I actually need to know is in the button code:<INPUT id=DEL style="WIDTH: 74px; HEIGHT: 40px" type=button size=17 value=Delete width="200" tabindex="21" onclick=?? name="DEL"> What actually goes in the onclick phrase to correctly call the routine needed for processing. I'm not sure which of the following is true: onclick="Scriptname"onclick="Routinename"onclick="Scriptname.Routinename" I would appreciate information on this!OMR Link to comment Share on other sites More sharing options...
Webworldx Posted October 7, 2005 Share Posted October 7, 2005 <script type="text/vbscript">Function doSomething() Msgbox "text here"End Function</script><INPUT id=DEL style="WIDTH: 74px; HEIGHT: 40px" type=button size=17 value=Delete width="200" tabindex="21" onclick=doSomething() name="DEL"> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now