Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 25th, 2005, 10:51 AM   #1
mhuckaba
Newbie
 
Join Date: May 2005
Posts: 8
Rep Power: 0 mhuckaba is on a distinguished road
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.
mhuckaba is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:16 AM.

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