SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Nov 2007
    Location
    Beautiful \'INDIA\'.
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Code to display the Keys and values of Dictionary

    Hi,

    Dim D ' Create a variable.
    Set D = CreateObject("Scripting.Dictionary")
    D.Add "a", "Athens" ' Add some keys and items.
    D.Add "b", "Belgrade"
    D.Add "c", "Cairo"
    ObjForD=D.keys 'Create another object for 'D'
    For i=0 to D.count-1
    msgbox "keyvalue of '" & ObjForD(i) & "' is " & D.item(ObjForD(i)) ''to display keys and its values
    Next

    The above is to display the keys and values of a dictionary object.
    Regards,
    Krrishna

  2. #2
    Moderator
    Join Date
    Jan 2007
    Location
    Pittsburgh, PA
    Posts
    2,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Code to display the Keys and values of Diction

    What is your question here?

  3. #3
    Senior Member
    Join Date
    Nov 2007
    Location
    Beautiful \'INDIA\'.
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Code to display the Keys and values of Diction

    i just wanted to post this code snippet which will be helpful.
    Regards,
    Krrishna

  4. #4
    Moderator
    Join Date
    Jan 2007
    Location
    Pittsburgh, PA
    Posts
    2,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Code to display the Keys and values of Diction

    We do have separate thread to share code snippets.

    QTP FAQ and Useful Links
    4.A) Donate user defined functions
    http://www.sqaforums.com/showflat.php?Number=347046

  5. #5
    Senior Member
    Join Date
    Nov 2007
    Location
    Beautiful \'INDIA\'.
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Code to display the Keys and values of Diction

    Thank you Reddy.i will do that from my next post onwards.
    Regards,
    Krrishna

 

 

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 10:27 AM.

Copyright BetaSoft Inc.