Hey all,
I've encountered something weird today that I can't explain.
I have a variable in a string file, call it ST15:18. I need to convert this value to an integer file. So I do a copy from the string to a N37:60, with a length of 5. N37:60 is the length, fine. But if the varible in the string is less than 10 (ie only one number) then the value in the integer shows up with a "2" concatonated onto it. For example, if ST15:18 holds a 52, then I copy it over to N37:60, and N37:61 holds the ASCII value for 52. But if ST15:18 holds an 8 (or anything else less than 10) then N37:61 holds the ASCII value for 82 (instead of 8). Anyone know why this is? I got around the problem by concatonating a 0 before the 8, and then the copy works fine. But I don't understand!
Wes
I've encountered something weird today that I can't explain.
I have a variable in a string file, call it ST15:18. I need to convert this value to an integer file. So I do a copy from the string to a N37:60, with a length of 5. N37:60 is the length, fine. But if the varible in the string is less than 10 (ie only one number) then the value in the integer shows up with a "2" concatonated onto it. For example, if ST15:18 holds a 52, then I copy it over to N37:60, and N37:61 holds the ASCII value for 52. But if ST15:18 holds an 8 (or anything else less than 10) then N37:61 holds the ASCII value for 82 (instead of 8). Anyone know why this is? I got around the problem by concatonating a 0 before the 8, and then the copy works fine. But I don't understand!
Wes