Why not change your UDF to take the name of the query as a string, and when referencing your query, use evaluate().
--- Billy Cravens ----- Original Message ----- From: "Jon Hall" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, December 20, 2001 4:38 PM Subject: Re: How can I get a query's name? > Just to explain, I am passing a query to a UDF, not the name of the query. > Since in passing the query as a parameter to the UDF, the reference to the > query gets named as my parameter. In my UDF I am outputing the query using > the queryname[column][row] notaion. For a certain part of code I would like > to know the query name itself. > > jon > ----- Original Message ----- > From: "Gregory Harris" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Thursday, December 20, 2001 5:23 PM > Subject: RE: How can I get a query's name? > > > > Well, granted that a query name is the defining key for everything else > > about a query for example: > > > > query.recordcount > > query.thisfield > > etc... > > > > > > I don't think that there is a higher level field that give out the name of > > queries that are running such as query.listofqueriesthathave run. A query > > name should A) Be a given in code or B) If the name is dynamic be deviated > > in the same way that you came up with that dynamic name (unless of course > > you're making random query names somehow, but I don't see the point of > > that). > > > > Gregory Harris > > [EMAIL PROTECTED] > > > > -----Original Message----- > > From: Jon Hall [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, December 20, 2001 1:27 PM > > To: CF-Talk > > Subject: How can I get a query's name? > > > > > > Here is a good one. Is it possible to retrieve a queries name from the > query > > itself? > > > > CF obviously knows lots of things about the query, since it spits out the > > queryname and the sql in the debug output. Is this stuff exposed in any > way? > > Am I having a brainfart? This stuff should be available... > > > > jon > > > > ______________________________________________________________________ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

