SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Apr 2002
    Location
    London UK
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Datapool records count

    How to get the records count of a datapool within GUI script.

    During the AUT testing we add/remove datapool records. In this case i need to update script everytime to limit the loop, Is it possible to read the total number of records of datapool within script
    Cheers
    Hs

  2. #2
    Member
    Join Date
    Nov 2005
    Location
    Auckland, New Zealand
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Datapool records count

    Hi there,

    Here's an idea... use a constant end of file record in the datapool then you can use:

    do while ThisRecord<>EOFRecord
    'the procedure/statement list goes here
    loop

    ... instead of a for...next loop. That way you don't need to know how many records there are. The trick to this is to fetch a row & check the value once before the loop statement (in case the datapool is empty) and then do this again as the last two statements within the loop - this works for me every time. If you actually need to know how many there are, you can increment a counter within the loop too...
    It's life Jim, but not as we know it

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:21 PM.

Copyright BetaSoft Inc.