[futurebasic] Re: [FB] A bug ?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 2009 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Fri, 10 Jul 2009 14:38:57 -0700
On Jul 9, 2009, at 10:01 PM, Piet en Claudine wrote:

> Hi,
>
> I think I found a little bug in FB 5.2 ,...
> I’m rewriting a lot of software with the new compiler and now I had  
> to search some time to get this bug out of my translate software
> and to make the old Z-tree database software running again.
>
>
> In this test in FB4   (with Tot_key$=””)
>
> LONG IF Tot_key$=CHR$(0)
>   ---> the program takes this way
>   XELSE
>
> END IF
>
> In same test in FB5.2   (with Tot_key$=””)
>
> LONG IF Tot_key$=CHR$(0)
>
>   XELSE
>   ---> the program takes this way
> END IF
>
>
> I changed  CHR$(0) into “” an now the piece of software runs  
> allright again

Looks like FB5 is doing the right thing. Chr$(0) is a null control  
character in ASCII and a pascal string equal to "" is simply an empty  
string consisting of "\p". Therefore a null does not equal "\p"


Brian S