04-09-2008 01:27 PM
04-09-2008 01:49 PM
I'm not sure how you are actually concatenating the string and the number because using the + operator on a string and a number gives a type error. I'm also not sure how you are getting the spaces between bytes in your converted numeric value.
However, here are some things that might be useful:
1) SearchAndReplace("02 44 07 31 40 04 0x 00 10 00 01", "0x ", "") gives 02 44 07 31 40 04 00 10 00 01
2) Str(0x00100001, "%x") gives 100001. Note that there are no spaces between bytes. Spaces could be added by extracting the bytes with Mid() and glueing them back with spaces in between, but it seems like you already have a solution for that.
04-09-2008 03:13 PM
For (2), I should have put the following to give the leading zeros:
Str(0x00100001, "%.8x") gives 00100001
04-10-2008 10:02 AM
04-10-2008 10:22 AM