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: 11 Years, 3 Months, 4 Weeks 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: 11 Years, 3 Months, 4 Weeks 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,618 07-11-2017, 07:41 PM
Last Post: Anshu
  Unable to pass "Enter" Key through Sendkeys Lavanya N 1 4,157 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,389 12-11-2013, 07:30 AM
Last Post: basanth27
  Help needed in automating a Java window adityasrinivasb 2 3,496 07-05-2013, 02:00 PM
Last Post: Staff
  Entry Certification diya 3 2,773 12-04-2012, 05:42 AM
Last Post: diya

Forum Jump:


Users browsing this thread: 1 Guest(s)