Page 1 of 1

ByteChr with Nullbyte gives empty string

Posted: Tue Oct 23, 2018 10:56 pm
by DieterG
ByteChr gives an empty string if the input a Nullbyte.
It is nessary on RAWdatas to not ignore a nullbyte.

I must use a little trick to solve the Problem, but is easier to see the problem:

temp$ = MidStr(received$,i,1)
Null$ = „/0“
j=Val(temp$)
If j=0
out$=out$ .. Null$
Else
out$ = out$ .. ByteChr(j)
EndIf

Re: ByteChr with Nullbyte gives empty string

Posted: Fri Oct 26, 2018 11:08 pm
by airsoftsoftwair
Right, that's clearly a bug. Will be fixed. Btw, please use [code]....[/code] when pasting code :)

Re: ByteChr with Nullbyte gives empty string

Posted: Sat Dec 01, 2018 3:38 pm
by airsoftsoftwair

Code: Select all

- Fix: ByteChr() returned an empty string when passing 0