PDA

Click to See Complete Forum and Search --> : ChrB & ChrB$


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?

oVeRRiDe
Aug 9th, 2000, 04:01 PM
In fact it wasn't so clear...
Here you can find a better explained version.
Thanks for your interesting and your help.
http://forums.vb-world.net/showthread.php?threadid=25876