Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Passing object name to vbscript function

Question posted by: mahskeet (Newbie) on March 26th, 2008 03:33 PM
Hi,

How do you pass a textbox name to a vbscript function. I know you can use this.name with javascript, just not sure about vbscript.

Many thanks,

Mark
jeffstl's Avatar
jeffstl
Expert
399 Posts
March 27th, 2008
03:31 PM
#2

Re: Passing object name to vbscript function
Quote:
Hi,

How do you pass a textbox name to a vbscript function. I know you can use this.name with javascript, just not sure about vbscript.

Many thanks,

Mark


I assume you are talking about local vbscript that executes like javascript.

If so it works very similiar to javascript.

Expand|Select|Wrap|Line Numbers
  1. Sub MyButtonEvent()
  2.      MyVar= Document.Form1.txtBox1.value
  3.      Alert "Your Value is " & MyVar
  4. End Sub
  5.  

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,285 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top ASP Forum Contributors