Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assign a variable to cell in DataTable
#1
Solved: 10 Years, 9 Months, 1 Week ago
How can I assign avariable to a cell in DataTable. I'm really a newbie in QTP. Thanks!
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
You can use DataTable("Column",dtlocalsheet) = your Variable

Reply
#3
Solved: 10 Years, 9 Months, 1 Week ago
And how can a variable be assigned to a specific cell, let's say "K3"?

Thx for replies!
Reply
#4
Solved: 10 Years, 9 Months, 1 Week ago
You can directly assign a value to a cell.
you will need to set the current row first then set the value to a particular column.

use SetCurrentRow method to set your row as 3
then use above code to set your value in column K of your sheet.

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Check for blank in datatable cell Prashanth 1 3,259 05-15-2013, 06:08 AM
Last Post: basanth27
  Datatable add and datatable import sheet wheelercha 4 33,357 06-14-2012, 04:53 PM
Last Post: Arul
  Data Cell Variable Calculation AGrant 0 1,830 10-03-2008, 06:08 PM
Last Post: AGrant

Forum Jump:


Users browsing this thread: 2 Guest(s)