ok so you mean "if I have some UDF's of my own to load, how can I be sure to
load them only once?"
Personally, I'd do it right with the "starter" fuseaction using a local
variable right in the top-level fbx_settings:
<cfparam name="loadMyUDFs" default="true" type="boolean">
<cfif loadMyUDFs>
<!--- load them here --->
<cfset loadMyUDFs = false>
</ciff>
however, if one wanted to use techspedition core file variables you could
use techspedition.FuseQ and techspedition.localQ to know what you've got on
the plate. At the end of each fuseaction executed in the FuseQ, everything
that was AddToQ()'ed during that fuseaction (which is what the localQ is) is
prepended to anything still left in techspedition.FuseQ. This gives you a
LOT of granularity-- when you really need it. I try access things by method
when possible even though all of the key variables are exposed, because it
will make your code forwardly compatible on the potential occasion that
FuseQ get adopted into the spec.
----- Original Message -----
From: "Brian Kotek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 2:26 PM
Subject: RE: fuseQ
> John, I think he means that when using CFMODULE to call other
> fuseactions, it's easy to use Fusebox.IsCustomTag to turn off the
> layouts or not run certain code. With FuseQ, you probably only want
> certain code, like global layout or includes of fuctions, to happen only
> once, not for each fuseaction in the que. Is there a way to get your
> application to know the difference? Maybe something like CFIF
> IsFirstInQ or IsLastInQ or something similar, so that way it's easy to
> have code run only once, when the first fuseaction runs, or only when
> the last fuseaction runs. Am I making any sense? Or its very possible
> that you have some technique that makes this moot.
>
> Thanks,
>
> Brian
>
>
> John Quarto-vonTivadar wrote:
> > Hi Joel,
> >
> > FuseQ fully supports everything you expect to have available from the
> > official Fusebox core file. SO the answer is Yes, "Fusebox.IsCustomTag"
> > is
> > in there.
> >
> >
> > what are some of your own UDF's that you are using? Are you loading them
> > using fbx_settings or fbx_layouts?
> >
> >
> > ----- Original Message -----
> > From: "Joel Richards" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, May 20, 2002 1:20 PM
> > Subject: fuseQ
> >
> >
> > >
> > > Does FuseQ have a variable such as fusebox.isCustomTag to tell it that
a
> > > fuseaction is being called from another fuseaction?
> > >
> > > I am wondering because I have a library of UDFs I am cfincluding in my
> > > fbx_switch file at the top because these functions are being used by
> > > every
> > > fuseaction in the circuit. I keep getting 'Routines cannot be declared
> > more
> > > than once... errors when I try to run the fuseaction which is calling
> > > multiple fuseactions through addToQ();
> > >
> > > Any ideas on how to prevent this file from getting called more than
once
> > > when running multiple fuseactions?
> > >
> > > Thanks,
> > > Joel
> > >
> > >
> >
> >
> >
>
>
>
> ---
>
>
==^================================================================
This email was sent to: [email protected]
EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]
T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================