Posted by christian
(184.108.40.206) on January 21, 2006 at 07:13:38:
In Reply to: Re: Re: Managing Rnd value within BasicCard v6.5 posted by christianb on January 17, 2006 at 09:14:26:
I'm not sure I understand what you mean and what your code is supposed to do. In my opinion there seems to be a little confusion about data types. E.g if Byte$ = "BC" (that's a string, i.e. two bytes), then Asc(Byte$) won't return &HBC (a byte) but &H42. That's the hexadecimal representation of the first byte of the string "B". And Hex$(High@)+Hex(Low@) will never return the string "BC" in your example. If High@ (again a byte) is &HB0 and Low@ is &HC then Hex$(High@) will be "B0" (a string) and Hex$(Low@) will be "C" (another string) so the concatenation will be "B0C" (a string of three bytes). The hexadecimal representation of this string would be &H42 &H30 &H43 (three bytes).