Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   JavaScript and Client-Side Browser Scripting (http://www.programmingforums.org/forum23.html)
-   -   Variables/objects/fields accessed by values/strings (http://www.programmingforums.org/showthread.php?t=4102)

mhuckaba May 25th, 2005 11:51 AM

Variables/objects/fields accessed by values/strings
 
Lets say I have the following code:
:

MSODSC.Datapages(0).FirstSection.HTMLContainer.Children("field_name").Focus
MSODSC.Datapages(0).ApplyFilter


How can I use textbox.value to define "field_name"?

I know if I say const variable = "a_string" then it will load the field a_string, but I can't use a textbox.value to define a const variable, so what can I do?

If I just use

MSODSC.Datapages(0).FirstSection.HTMLContainer.Children(textbox.value).Focus

then it gives me an object required: string error.


All times are GMT -5. The time now is 12:54 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC