SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    May 2009
    Location
    Hyderabad
    Posts
    52
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Dictionary Object Not Storing All Array Items

    Hi All,

    I'm facing one strange problem.

    I'm storing the two arrays ARR1 and ARR2 into the DICTIONARY as keys and values respectively. i.e.I'm storing ARR1 as KEYS and ARR2 as ITEMS

    both arrays contains same number of items i.e. 75

    Set objDict = CreateObject("Scripting.Dictionary")
    For tb = 0 To UBound(ARR1)
    objDict.Add ARR1(tb),ARR2(tb)
    Next

    Now the dictionary is just storing 45 elements only of both the arrays instead of complete 75.

    Thanks in anticipation.
    Thanks
    <font color="brown">SHALABH DIXIT</font>

  2. #2
    Member
    Join Date
    May 2009
    Location
    Hyderabad
    Posts
    52
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Dictionary Object Not Storing All Array Items

    caught the mistake....!!! [img]/images/graemlins/smile.gif[/img]
    due to same entries in the ARR1, some of the keys were getting repeated and hence getting skipped by QTP.
    Thanks
    <font color="brown">SHALABH DIXIT</font>

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:42 PM.

Copyright BetaSoft Inc.