[futurebasic] Re: [FB] FB More files

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2012 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Thu, 21 Jun 2012 16:06:44 -0700
On Jun 21, 2012, at 3:50 PM, Ted Spencer wrote:

> That is by way of wondering how the CFURL info is declared as a global; is that as simple as putting the DIM up front and adding my Hungarian 'g' to it?
The 'g' prefix is just a visual clue for the programmer. It doesn’t make the variable a global. A global must be between a 'begin globals' and 'end globals'

begin globals
dim as CFURLRef gUrl
end globals

If the program uses gUrl several hours later, don’t CFRelease it. There are better ways to handle memory resources than hanging on to them but it would require a little more code.