Using my older PB and FF2 .INC files under FF3

Started by John Montenigro, November 21, 2009, 05:09:34 PM

Previous topic - Next topic

John Montenigro

 

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?



Nathan Durland

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)

John Montenigro

Should I stop using the User_Includes.inc file, and put those #INCLUDE statements into
'FF_AppStart' ???


Paul Squires

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.
Paul Squires
PlanetSquires Software