Login | |
|
 |
RE: How to compare Multi dimensional arrays - 5/7/2008 2:43:50 AM
|
|
 |
|
| |
Rischip
Posts: 379
Score: 2
Joined: 3/26/2007
Status: offline
|
Can you post the rest of the code?
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
 |
RE: How to compare Multi dimensional arrays - 5/7/2008 5:59:57 AM
|
|
 |
|
| |
ebgreen
Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
|
My first question would be why use arrays in the first place? You are taking data that is in a data structure (a recordset) and you are putting it into a more primitive data structure (array). Why not just do the comparisons between the recordsets?
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: How to compare Multi dimensional arrays - 5/7/2008 7:53:53 AM
|
|
 |
|
| |
ebgreen
Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
|
Ok, so you query a database. The query returns a recordset. That is essentially what you are looping through to add everything to an array. Instead of adding to and array, make two recordsets (oRecx and oRecy) then loop through them just like you already are. Instead of adding the contents of each record to an array, just compare each record in oRecx to the same record in oRecy.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|