LZ,
I would probably define a 3rd hashtable contains a "union" of the first two
hash tables. This "union" would be a special object that contains name,
value1 (from hash 1) and value2 (from hash 2).
When adding the first hash table I would update the value1 properties, when
adding the second hash table I would update the value2 properties.
Then I would remove entries where value1 = value2.
I would then print out all the entries in this 3rd hashtable...
If that made no sense? I will try to post an example this evening.
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net
| hi,
|
| ok, but in this case I will only know if there are equal or not.... I need
| more than that.. I have to print out all the defferences between the 2
| haschtables.. all diffrences in objects.
| --
| LZ
|
|
| "Lamis" wrote:
|
| > Hi,
| >
| > what is the best way to compare 2 haschtables contatining objects. the
| > objects has 2 property, name & value. I need to print out the
differences
| > --
| > LZ