Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the equivalant of "THIS.VALUE" 1

Status
Not open for further replies.

ntm0n

Programmer
Jun 22, 2001
30
US
What is the equivalant of "THIS.VALUE" as in Javascript....?

I want to call a function with the value the object has but I want to make the function generic so it deals with only what was passed to it..

Thanks!
 
PS - I need to set the field value that this came from after its been manipulated. Thats what I want to figure out how to do it without having to call document.frm.tbTxt.value every time I want to update a objects value.

 
Not sure if this is what you're after,

Set oControl = document.frm.tbTxt.value
Msgbox oControl.Value
oControl.Value = "New"

Or this

function button1_onclick()
Testing document.frm.tbTxt
end function

Sub Testing(oControl)
MsgBox oControl.Value
oControl.Value = "New"
end Sub Jon Hawkins
 
Thanks Jon,

Needed the first version of setting the object...

G.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top