rpop91
Member
Hey Guys..
Here's my problem. I have an array of 9 characters, a "part number". I need to compare this array to another part number that is predefined in a DB. However, I have over 60 part numbers.
The way I do this now is do a CompareBytesToBytes function to compare 9 bytes at a time...60 different times. This is very heavy on the memory.
What I want to know, is there a way to take my array and compare it to all other arrays in a "lookup table" all at once and spit out whether it matches, and if it does, spit out either the part number it matches or a bool array i.e. Part_Number[12].
I've though about maybe writing this in SCL as my STL skill isn't very high.
Thanks for the help!
Here's my problem. I have an array of 9 characters, a "part number". I need to compare this array to another part number that is predefined in a DB. However, I have over 60 part numbers.
The way I do this now is do a CompareBytesToBytes function to compare 9 bytes at a time...60 different times. This is very heavy on the memory.
What I want to know, is there a way to take my array and compare it to all other arrays in a "lookup table" all at once and spit out whether it matches, and if it does, spit out either the part number it matches or a bool array i.e. Part_Number[12].
I've though about maybe writing this in SCL as my STL skill isn't very high.
Thanks for the help!