Hi Guys,
I've got one string "1101110111111101110111" of bit codes representing preferences for a fuel card (first character Petrol, second Gas, third Diesel etc), then I'm trying to find the best match in a list of codes from the supplier.
I'm trying to do a bitwise Eqv test for each string comparison to find the closest match i.e
I'm just not sure how to do the comparison though, how do I convert my bit string to a binary integer to do the comparison on it??
kwik
I've got one string "1101110111111101110111" of bit codes representing preferences for a fuel card (first character Petrol, second Gas, third Diesel etc), then I'm trying to find the best match in a list of codes from the supplier.
I'm trying to do a bitwise Eqv test for each string comparison to find the closest match i.e
VB.NET:
1101110111111101110111
1111110111111101111111
----------------------------
1101110111111101110111 (Match - with extra options, this is ok)
1101110111111101110111
0001110111111101110000
----------------------------
0001110111111101110000 (No Match)
kwik