Raymon Camden pops in with the proper info for that example (That you can use local.variable as a replacement for var variable).
Taking Rawks example, he's setting it to local scope by VARing it: <cfset var redirectLookup = QueryNew()> As for it changing automatically, I'm not sure, I don't know of a way to check what scope something belongs to at runtime. On Tuesday, June 24, 2014 4:01:36 PM UTC-5, Jason Allen wrote: > > I'm not sure.. I'm just not really seeing how I use queryNew to set the > scope of the query. Do I just define the columns? Datatypes? > > I found a discussion and this is where I read about just defining the > query as a string because once you actually run the query the variable type > will be changed to a query object. > > > http://house-of-fusion.10909.n7.nabble.com/cffunction-initialize-query-as-empty-string-or-QueryNew-td100465.html > > Can you take a look and see if this makes sense. Anybody else able to > chime in? I have quite a bit of work to do and I'm kinda stuck because I > don't want to spend the next 5 days scoping out all these queries if I > don't have to. > > > > > On Tue, Jun 24, 2014 at 1:02 PM, Marcus F <[email protected] <javascript:> > > wrote: > >> I've never tried that, is there a simple way to check what scope a >> variable belongs to? >> >> >> On Tuesday, June 24, 2014 12:58:21 PM UTC-5, Jason Allen wrote: >>> >>> Ok, so the point is that the query results are kept within the local >>> scope. Got it. >>> >>> I read that I could just skip the queryVar and just >>> >>> <cfset var queryName = ''> >>> >>> And even though it initially declares it as a string, once you run the >>> query it turns it into a query structure. >>> >>> Thoughts? I really don't want to have to go through and queryNew() >>> several hundred queries.... >>> >>> >>> -- >> -- >> online documentation: http://openbd.org/manual/ >> http://groups.google.com/group/openbd?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Open BlueDragon" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
