Jump to content
Sign in to follow this  
OldManRiver

Naming Conventions

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
<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">

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...