Dictionary Object

Results 1 to 2 of 2

Thread: Dictionary Object

  1. #1
    Join Date
    Dec 1969

    Default Dictionary Object

    I need to know if there is a way to get the total of a series of numbers stored in my dictionary object ?

  2. #2
    tension Guest

    Default RE: Dictionary Object

    If you want to total ALL the items in the dictionary object you can loop through it and just add all the numbers. If you want to just total certain items that a user asks for, you could store the keys in an array and then loop through the dictionary using the array.<BR><BR>You can place ALL the dictionary items (the values you want to total) in an array using the items method of the dictionary object and then loop through the array.<BR><BR>see:<BR>http://www.devguru.com/technologies/vbscript/quickref/dictionary.html<BR>For info about the dictionary object and its methods.<BR><BR>Is that what you meant?<BR>-Laffit!<BR>tension7@yahoo.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts