<?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 - CFML_Reference - functions-pt241.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-26T02:24:41</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt241.htm#45951" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt241.htm#45951">
		<title>coldfusion/6/CFML_Reference/functions-pt241.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt241.htm#45951</link>
		<description>It should be noted that you're only removing FORM.removeChars - 1 characters from the beginning of the string.  Also, you should use lt instead of lte when checking the string length, otherwise there is no way to output just the last character.&lt;br /&gt;&lt;br /&gt;These don't really matter for a hypothetical example (unless you want to run it), but you're not closing the first two &lt;cfif&gt; tags or any of your &lt;p&gt; tags and the text doesn't really match what the program is doing.&lt;br /&gt;&lt;br /&gt;This would be a more useful example:&lt;br /&gt;&lt;cfset _str = &quot;this&quot;&gt;&lt;br /&gt;&lt;cfset _start = 4&gt;&lt;br /&gt;&lt;cfset _len = 1&gt;&lt;br /&gt;&lt;cfoutput&gt;&lt;br /&gt;&lt;cfif Len(_str) lt (_start + _len - 1)&gt;&lt;br /&gt;    &lt;p&gt;Your string #_str# only has #Len(_str)#   characters. You cannot output&lt;br /&gt;    #_len# characters of this string starting at character number #_start# because it&lt;br /&gt;    is not long enough&lt;/p&gt;&lt;br /&gt;&lt;cfelse&gt;&lt;br /&gt;    &lt;p&gt;Your original string: #_str#&lt;/p&gt;&lt;br /&gt;    &lt;p&gt;Your changed string, showing only #_len# character(s), starting at&lt;br /&gt;    character number #_start#: #Mid(_str, _start, _len)#&lt;/p&gt;&lt;br /&gt;&lt;/cfif&gt;&lt;br /&gt;&lt;/cfoutput&gt;</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-03-09T22:34:47</dc:date>
	</item>
	</rdf:RDF>

