468,768 Members | 1,534 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,768 developers. It's quick & easy.

Passing object name to vbscript function

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
Mar 26 '08 #1
1 3464
jeffstl
432 Expert 256MB
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.  
  6.  
Mar 27 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by domeceo | last post: by
3 posts views Thread by AndyDunning | last post: by
12 posts views Thread by Andrew Bullock | last post: by
3 posts views Thread by Michael | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.