PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: John Montenigro on November 21, 2009, 05:09:34 PM

Title: Using my older PB and FF2 .INC files under FF3
Post by: John Montenigro on November 21, 2009, 05:09:34 PM
 

In FF2, one #INCLUDE statement would include an entire .INC file that had a "header", DECLAREs, GLOBALs, and #IF NOT %DEF() statements, all ahead of individual FUNCTIONs and SUBs.

Now in FF3, if I want to put that .INC in the Functions Library, it looks like I have to break that file down - one .INC file for each function. Am I correct?

If so, where should the DECLAREs, GLOBALs, and #IF tests now go?


Title: Re: Using my older PB and FF2 .INC files under FF3
Post by: Nathan Durland on November 22, 2009, 10:52:57 AM
I've been putting mine is the special function 'FF_AppStart'. (I think that's the name; just upgraded my machine to WIn7, haven't re-installed FF3 yet to check)
Title: Re: Using my older PB and FF2 .INC files under FF3
Post by: John Montenigro on November 22, 2009, 04:16:16 PM
Should I stop using the User_Includes.inc file, and put those #INCLUDE statements into
'FF_AppStart' ???

Title: Re: Using my older PB and FF2 .INC files under FF3
Post by: Paul Squires on November 22, 2009, 05:04:03 PM
Quote from: John Montenigro on November 22, 2009, 04:16:16 PM
Should I stop using the User_Includes.inc file, and put those #INCLUDE statements into
'FF_AppStart' ???

Yes, definitely. FF3 does not recognize the "user_includes.inc" approach.

Actually, it does recognize it during the conversion of a FF2 project to FF3 but other than that, it doesn't load anything from that file.