<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-p76.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T20:53:17</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#23925" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#17661" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#17641" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#17087" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#17082" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#16784" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#16685" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#13330" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#13326" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#23925">
		<title>coldfusion/6.1/htmldocs/tags-p76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#23925</link>
		<description>The CFLOOP logic is tested in the beginning of the loop.  This could be considered DO-WHILE logic.  It is possible that the routine within the CFLOOP could never be executed.&lt;br /&gt;&lt;br /&gt;What tags exist to have the condition tested after the first execution of the routine.    I need to always execute the loop at least one time.  Can someone help me?</description>
		<dc:creator>mDgentry</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-11-15T07:36:01</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#17661">
		<title>coldfusion/6.1/htmldocs/tags-p76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#17661</link>
		<description>The code posted by Mike@Jobscience does not work for two reasons:&lt;br&gt;&lt;br&gt;1) The function reference in the cfloop query attribute must be surrounded by pound signs.&lt;br&gt;The cfloop tag is treating &quot;getQuery()&quot; as a literal string, and there is no query named getQuery().&lt;br&gt;&lt;br&gt;2) The cfloop query attribute requires the name of a query, not the query itself. &lt;br&gt;The getQuery() function returns the query, not its name. &lt;br&gt;If you fix problem 1, but not problem 2 the page generates a &quot;Complex object types cannot be converted to simple values&quot; error because it is trying to convert the query object to a string. &lt;br&gt;&lt;br&gt;The following code does work as desired, but the function is not needed, since it just returns a hard-coded value that could be used directly as the cfloop query attribute.&lt;br&gt;(Note that this version of the code is not optimum CFML, as you can use cfoutput with a query attribute without using a cfloop.)&lt;br&gt;&lt;br&gt;&lt;cfquery name=&quot;myQuery&quot; datasource=&quot;cfsnippets&quot;&gt;&lt;br&gt;     SELECT FirstName&lt;br&gt;     FROM Employees&lt;br&gt;&lt;/cfquery&gt;&lt;br&gt;&lt;br&gt;&lt;cffunction name=&quot;getQuery&quot;&gt;&lt;br&gt;    &lt;cfreturn &quot;myQuery&quot;&gt;   &lt;!--- A previously created query ---&gt;&lt;br&gt;&lt;/cffunction&gt;&lt;br&gt;&lt;cfoutput&gt;&lt;br&gt;&lt;cfloop query=&quot;#getQuery()#&quot;&gt;&lt;br&gt;   #FirstName#&lt;br&gt;&lt;br&gt;&lt;/cfloop&gt;&lt;br&gt;&lt;/cfoutput&gt;</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-06-25T07:30:55</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#17641">
		<title>coldfusion/6.1/htmldocs/tags-p76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#17641</link>
		<description>I have noticed that looping through a query required a direct reference to the query variable rather than a returned refernce, such as:&lt;br /&gt;&lt;br /&gt;&lt;cffunction name=&quot;getQuery&quot;&gt;&lt;br /&gt;    &lt;cfreturn variables.myQuery&gt;   &lt;!--- A previously created query ---&gt;&lt;br /&gt;&lt;/cffunction&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfloop query=&quot;getQuery()&quot;&gt;&lt;br /&gt;   --- output&lt;br /&gt;&lt;/cfloop&gt;&lt;br /&gt;&lt;br /&gt;This does not work, at least not that I have been able to make it happen.</description>
		<dc:creator>Mike@Jobscience</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-06-24T15:09:31</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#17087">
		<title>coldfusion/6.1/htmldocs/tags-p76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#17087</link>
		<description>absolutely, do a google search for 'nested loop coldfusion' and you'll get a few sources or try http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/arrayStruct4.htm this one explains the use with arrays</description>
		<dc:creator>NCVision99</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-06-17T10:29:28</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#17082">
		<title>coldfusion/6.1/htmldocs/tags-p76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#17082</link>
		<description>Can I place a loop inside another loop?</description>
		<dc:creator>jakedimaredimare</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-06-17T08:13:34</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#16784">
		<title>coldfusion/6.1/htmldocs/tags-p76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#16784</link>
		<description>rgates89: LiveDocs does not receive enough traffic to handle questions such as this&lt;br&gt;effectively. I suggest posting your issue to the online forums:&lt;br&gt;http://webforums.macromedia.com/coldfusion/ where, I'm sure, you will get&lt;br&gt;quite a few creative solutions. Also, I tried to send you an e-mail, but it bounced.</description>
		<dc:creator>jrunrandy</dc:creator>
		<dc:type>1 0</dc:type>
		<dc:date>2004-06-14T08:27:11</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#16685">
		<title>coldfusion/6.1/htmldocs/tags-p76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#16685</link>
		<description>How can I delay a loop for X number of seconds.  Let's say I want to query a database over and over again without refreshing the page to check if there's new data in the database, but because I don't want to put too much stress on the database, I only want to do this ever 2 seconds.  How is this possible?</description>
		<dc:creator>Robert Gates</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-06-11T16:03:33</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#13330">
		<title>coldfusion/6.1/htmldocs/tags-p76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#13330</link>
		<description>There is an enhancement request (52228) oustanding for a cfcontinue tag. &lt;br&gt;We will be considering it for a future release.</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-04-23T07:23:15</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#13326">
		<title>coldfusion/6.1/htmldocs/tags-p76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p76.htm#13326</link>
		<description>It would be very handy to have a &lt;CFCONTINUE&gt; tag (a familiar programming concept) that continues the loop from the beginning, in the next iteration.</description>
		<dc:creator>MarkZet</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-04-23T06:47:57</dc:date>
	</item>
	</rdf:RDF>

