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
ByteChr with Nullbyte gives empty string
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: ByteChr with Nullbyte gives empty string
Right, that's clearly a bug. Will be fixed. Btw, please use [code]....[/code] when pasting code
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: ByteChr with Nullbyte gives empty string
Code: Select all
- Fix: ByteChr() returned an empty string when passing 0