Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use of a datatable but <enter> is needed after the 8th entry
#1
Solved: 10 Years, 8 Months ago
QTP10
XP
IE8

Im wanting to use a datatable (of appox 50 entries) within an action; however an <enter> is needed after every 8th entry.

Can this be done, and if so do you know of where I might find an example?
Reply
#2
Solved: 10 Years, 8 Months ago
Inlcude this piece of code after setting the row.
Code:
If (Datatable.GetCurrentRow() Mod 8 ) = 0 Then
   '"Now Click on the enter"
End If

The Code looks something like this.
Code:
For RowCount = 1 to DataTable.GetRowCount()
    DataTable.SetCurrentRow RowCount
    If (DataTable.GetCurrentRow Mod 8 ) = 0   Then
        msgbox "Now Click on the enter"
    End If
Next
Let me know if you need any more information
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Excelsheet data entry Anshu 0 1,480 07-11-2017, 07:41 PM
Last Post: Anshu
  Unable to pass "Enter" Key through Sendkeys Lavanya N 1 3,911 07-24-2015, 02:17 PM
Last Post: Lavanya N
  How to enter values into excel which is already open using QTP Narayanan 1 4,137 12-11-2013, 07:30 AM
Last Post: basanth27
  Help needed in automating a Java window adityasrinivasb 2 3,248 07-05-2013, 02:00 PM
Last Post: Staff
  Entry Certification diya 3 2,577 12-04-2012, 05:42 AM
Last Post: diya

Forum Jump:


Users browsing this thread: 1 Guest(s)