[futurebasic] Re: [FB] Translation Error

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

From: Robert Purves <listrp@...>
Date: Mon, 8 Feb 2010 16:18:37 +1300
Max Taylor wrote:

> I'm stuck here, what's wrong with this code that I'm missing here.

> FBtoC: translating CGCoordinateSystem
> FBtoC: build settings from FBtoC preferences
> •• fn type mismatch in line 976 of CGCoordinateSystem: GetTextForModifierKeys
>  976:  txtStr = fn GetTextForModifierKeys( modifierKeys )


> local fn GetTextForModifierKeys( modKey as UInt32 ) as Str63
> //————————————————————————————
> dim as Str63 keyValStr, txtStr, returnStr
> . . .
> . . .
> . . .
> end fn = returnStr

The error appears to be a bug in FBtoC.

As a workaround, change the function-type to Str255:
local fn GetTextForModifierKeys( modKey as UInt32 ) as Str255

Robert P.