[futurebasic] Re: [FB] FBtoC conversion tricks

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2008 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Tue, 5 Feb 2008 17:28:17 +1300
William Levering wrote:

>   I got six of these warnings from the LOCAL below and they all went  
> away when I used VAL&() instead of VAL()
>
> if val(edit$(2))<>Chart.chartwidth%  then ...
>    warning: comparing floating point with == or != is unsafe

You requested that gcc emit these warnings, by turning on the 'More  
warnings' checkbox in FBtoC's settings dialog, so you could turn it off.
But replacing val by val& is the Right Thing here anyway, regardless  
of warnings.


> Chart.sname$[arrayoffset+val(edit$(x))]= ...
>  error: array subscript is not an integer

Again, replacing val by val& is the correct fix.

Robert P.