Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coverting string to object
#1
Not Solved
Hi
I have retrieved a string value from excel sheet having the name of a control say "Dialog", now I want to convert this string to object.
How can I do this?

I have tried the following codes:
object = "Dialog"

1) Set toObject = GetObject(object) it is giving run time error with no. -2147221020

2) Set toObject = GetObject("C:\Program Files\Mercury Interactive\QuickTest Professional\bin",object) it is giving run time error with no. 429
Reply


Messages In This Thread
Coverting string to object - by Amit Singh Chauhan - 06-02-2008, 01:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Replace a string in a word document with another string rekha.naik 8 15,583 11-14-2013, 12:58 PM
Last Post: pranikgarg

Forum Jump:


Users browsing this thread: 2 Guest(s)