oVeRRiDe
Aug 9th, 2000, 01:03 PM
Hi everyone!
I have a pair of questions for you. Actually i'm working to
a program that, given some 8-bit random generated numbers
in binary, for example, 10001011, it converts it to
hexadecimal value and then to ascii chars.
1) The problem is that sometimes random-generated codes
goes under 31-decimal and Chr has to use 2 bytes to
represent them. The problem is solved (?) by using ChrB or
ChrB$ but, as i try to substitute them to Chr it does work
no more, since it does not give back anything. Do you have
any idea for this?
I have a pair of questions for you. Actually i'm working to
a program that, given some 8-bit random generated numbers
in binary, for example, 10001011, it converts it to
hexadecimal value and then to ascii chars.
1) The problem is that sometimes random-generated codes
goes under 31-decimal and Chr has to use 2 bytes to
represent them. The problem is solved (?) by using ChrB or
ChrB$ but, as i try to substitute them to Chr it does work
no more, since it does not give back anything. Do you have
any idea for this?