Results 1 to 2 of 2

Thread: Implement FOR Loop

  1. #1
    Geek_Guest
    Guest

    Implement FOR Loop

    I have a problem while using QTP especially while scripting.
    I have to write a loop statement for a piece of code which deals with Fiscal Years and Accounting Periods.

    For example: I have to run this piece of code for say, 12 accounting period i.e., 1 Fiscal Year.
    But there is no data on these applications which i could have used on the DT global / local sheet.
    So the only way out is to have Fiscal Year/ Accounting Period on the for loop but don't have an idea how to implement the same.

    Please help me out on this issue as early as possible....
    Regards,
    Shvetha

    Question asked by visitor Shvetha


  2. #2
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    Smile Re: Implement FOR Loop

    Hi Geek_Guest,

    Writing a for loop for Fiscal Years or Accouting Periods would be easier if you could suggest some smaple data u are dealing with.....

    Incase Fiscal dates are appearing a data table ot HTMl table, you could retrive the number of rows and accordingly loop it....Use getrowcount() function.

    Let me know if it helps.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact