Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

How to do looping for consecutive rows?

This is a discussion on How to do looping for consecutive rows? within the QTP forums, part of the Software Testing category; Hi... My application contains a row which is having several fields like(cost level,GL cost,percent of cost,plus amount...).I am importing the data from excel sheet for the above mentioned field and ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 05-09-2008
Junior Member
 
Join Date: Jan 2008
Location: Mumbai
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
coolkrish is on a distinguished road
How to do looping for consecutive rows?

Hi...

My application contains a row which is having several fields like(cost level,GL cost,percent of cost,plus amount...).I am importing the data from excel sheet for the above mentioned field and fetching in the respective field.

Instead of fetching the data in one row in application,i want to put the same data in consecutive rows also.

My excel sheet having consective no..of datas even.

Main thing is i dont want to touch the hardcore data.bcos tomorrow the no..of rows may change in application.

I know this is possible by using looping.but how to do looping.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-09-2008
Expert Member
 
Join Date: Jan 2007
Location: India
Posts: 208
Thanks: 3
Thanked 19 Times in 19 Posts
NawabShaikh is on a distinguished road
Thumbs up Re: How to do looping for consecutive rows?

1. At runtime get the Count of the Rows that ur Applicatio have.

2. Set the counter Limit to ur Applications Row Count.


intCntr = Browser(b).Page(p).WebTable(W).GetROProperty("row count")

''I am not sur ewhat ur control is like please check for the RO Property.

For intC = 0 to intCntr-1

''Code for setting the data in ur rows.

Next

Please revert with detail specs if it doesn't solve the purpose.


regards,
Nawab
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Difference between 2 consecutive years kusam_m Data Warehousing 0 03-13-2008 09:03 AM
Output date column as consecutive dates Geek_Guest Data Warehousing 0 11-14-2007 03:45 AM
How to achieve looping in C++ Lokesh M C and C++ 0 09-05-2007 05:43 AM
Can we implement a cursor looping logic JayaSravani Data Warehousing 0 07-25-2007 12:36 AM
Five persons birthdays occur at the consecutive days kumar_sarma2000 Brainteasers 6 06-06-2007 04:02 AM


All times are GMT -4. The time now is 11:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved