<?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 - functa94.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-25T23:17:50</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa94.htm#59841" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa94.htm#25216" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa94.htm#16788" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa94.htm#4338" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa94.htm#59841">
		<title>coldfusion/6.1/htmldocs/functa94.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa94.htm#59841</link>
		<description>This article shows poor coding practice. The result of the StructFind call will not be escaped, allowing for the possibility of SQL injection. In coldfusion variables are escaped within cfquery tags, but function calls are not.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-01-18T11:57:25</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa94.htm#25216">
		<title>coldfusion/6.1/htmldocs/functa94.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa94.htm#25216</link>
		<description>I agree, though CF documentation has always been especially vague in its description of structures.    The rest of the documentation is, at least, a little more explicit.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-12-09T11:29:15</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa94.htm#16788">
		<title>coldfusion/6.1/htmldocs/functa94.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa94.htm#16788</link>
		<description>I &quot;second&quot; the comments of &quot;No screen name&quot;.&lt;br /&gt;&lt;br /&gt;The ColdFusion documentation is universally imprecise and ambiguous.  One must experiment with the function to discover how to use it.  This entry (StructFind) is a good example:&lt;br /&gt;&lt;br /&gt;(1) The documentation glosses over the difference between a variable and a variable name, or a structure and a the name of a structure.  The difference is critical.  Although most things in ColdFusion are strings, Recent additions to the language require objects instead of strings.  And unctions such as IsDefined and Evaluate are difficult to understand if one does not understand the difference between a variable name and a string.  In the case of StructFind, the &quot;usage&quot; skeleton should say:&lt;br /&gt;&lt;br /&gt;StructFind(structure, key)&lt;br /&gt;where structure is the name of a variable containing the structure&lt;br /&gt;and key is a string, or a variable containing a string.&lt;br /&gt;&lt;br /&gt;Of course, elsewhere in the documentation,  _string_ should be defined as alphanumeric characters enclosed by single- or double-quotes.&lt;br /&gt;&lt;br /&gt;(2) Don't use the word &quot;determine&quot; to mean &quot;find&quot; or &quot;deduce&quot; or the like.  Use &quot;determine&quot; only when you mean one thing is a result of the other thing.  Examples:&lt;br /&gt;&lt;br /&gt;If y is a function of x, then x determines y.  &lt;br /&gt;Your skill level will determine which class to take.&lt;br /&gt;&lt;br /&gt;In this StructFind documentation, it says &quot;[StructFind]  determines the value associated with a key in  a structure.&quot;  It does NOT determine the value, the value is already in the structure.  The key determines the value that is returned!  A better short description would be: &quot;Returns the value associated with a key from a structure.&quot;  Note that one does not &quot;return ... in&quot; as the docs put it, but rather one &quot;returns ... from.&quot;  Even more clear would be: &quot;returns from a structure the value associated with a key.&quot;&lt;br /&gt;&lt;br /&gt;(3) Tline after the &quot;short description&quot; (as I am calling it), is not labeled.  Apparently, this line describes what is returned from the function, although one has to guess at that.  There should be the subheading: &quot;Returns&quot; immediatly above that line.  The description of what is returned should also indicate the nature of the return value.  Is it a string, an array, another structure, or the name of one of those things?  For example, what is returned if you had done this:&lt;br /&gt;&lt;br /&gt;StructInsert(mtstruct, key, ArrayNew(1))&lt;br /&gt;&lt;br /&gt;In the Parameter, Description section of the documentation, the description adds nothing to what is obvious.  Here is where you can actually describe the parameters.&lt;br /&gt;&lt;br /&gt;The example, as in all examples in the ColdFusion documentation, is so simple that they add litle or nothing to what is given in the &quot;usage&quot; line.  What happens if the value returned is an array (or another structure)?  How do you use StructFind to return the value of a single element of that array?</description>
		<dc:creator>a440guy</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-06-14T10:43:08</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa94.htm#4338">
		<title>coldfusion/6.1/htmldocs/functa94.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa94.htm#4338</link>
		<description>Much of this documentation is lacking a good deal of information.  This entry is a prime example.  What is returned if key is undefined? &lt;br /&gt;&lt;br /&gt;And like nearly all the documentation in this reference, what types are allowed?  What types are returned?</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-12-05T09:46:46</dc:date>
	</item>
	</rdf:RDF>

