This is a discussion on QTP: How do you assign a parameter in the Global DataTable into a Variable in QTP? within the Software Testing forums, part of the Testing category; Hi everyone. I am trying to assign one of the parameters from my datatable into a Variable. Currently, I am ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi everyone.
I am trying to assign one of the parameters from my datatable into a Variable. Currently, I am attempting this by using the following syntax; Dim InvestTp Set InvestTp = DataTable("Initial_Investment_Tp", dtGlobalSheet) - however this is returning the error: "Object required: '[string: "1"]' Can anyone help me out by stepping me through the syntax needed to convert the value in my datatable into a variable? |
|
|||
|
Hi,
Try like this... Actually, as per my knowledge, we dont use "SET" before the variables to which a value from datable is assigned. Try to assign that without using "Set" like InvestTP=DataTable("Initial_Investment_TP",dtGlobalsheet) I am sure it works. |
|
|||
|
Quote:
InvestTp = DataTable("Initial_Investment_Tp", Global) this wud take value from the Initial_Investment_Tp column and put it in InvestTp |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Store value in a global variable | Ketsuki | C and C++ | 3 | 05-11-2007 09:20 AM |
| comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) | Steve Summit | Tech FAQ | 0 | 06-15-2004 07:00 AM |
| comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) | Steve Summit | Tech FAQ | 0 | 06-01-2004 07:01 AM |
| comp.lang.c Answers to Frequently Asked Questions (FAQ List) | Steve Summit | Tech FAQ | 0 | 06-01-2004 07:00 AM |
| comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) | Steve Summit | Tech FAQ | 0 | 05-15-2004 07:00 AM |