VBScript, how to use variable as textbox id?

Posted on 2009-04-27
Medium Priority
Last Modified: 2012-05-08
I have set up my code to dynamically generate the id of a textbox on a grid that I have from a series of variables. But, once the textbox id is generated I cannot seem to use it. It's seen as a string and I have no idea how to tell it otherwise.

The code below generates the error:
Object required: '[string: "intended_textbox_id"]'

Set box = partA & partB & partC & "/" & partD
Set content = form2.box.Value
MsgBox content

Open in new window

Question by:humetp
  • 2
  • 2
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 24245309
What about (I'm not sure which one is right):
  -- or --
  -- or --

Open in new window


Author Comment

ID: 24250404
Everyone ends up with the error: Expected end of statement.
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 24254978
Is this for a web page?

Accepted Solution

humetp earned 0 total points
ID: 24269517
Turned out to be...

Open in new window


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Integration Management Part 2
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month14 days, 7 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question