[futurebasic] Re: [FB] Problem with Write Dynamic

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

From: Ken Shmidheiser <kshmidheiser@...>
Date: Sat, 6 Feb 2010 00:02:44 -0500
Brian wrote:

>Compress is meaningless with the FB5 implementation, so it is 
>ignored by the translator.

What I posted was legacy code, but nevertheless I did not know this. 
Thanks. (It should be documented.)

>The FB4 feature of assigning dimmed var to registers doesn't exist 
>in FB5, so the '@' symbol is ignored by FB5

HHhhhmmm. Not always.

local fn DefinitelyNeedsRegsisterVariables

dim as Str255       s
dim as CFStringRef  cfStr
dim as Boolean      ignore

s = "This is a test string"

cfStr = fn CFStringCreateWithPascalString( 0, @s, _kCFStringEncodingMacRoman )

ignore = fn CFStringGetPascalString( cfStr, @s, 256, 
_kCFStringEncodingMacRoman )

print s

end fn

fn DefinitelyNeedsRegsisterVariables

do
HandleEvents
until gFBQuit