<!--- This example shows the use of RemoveChars --->
<HTML>
<HEAD>
<TITLE>RemoveChars Example</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">
<H3>RemoveChars Example</H3>
<P>
Returns a string with <I>count</I> characters
removed from the specified starting position.  Returns 0
if no characters are found.
<CFIF IsDefined("form.myString")>
	<CFIF Evaluate(form.numChars + form.start) GT Len(form.myString)>
		<P>Your string is only <CFOUTPUT>#Len(form.myString)#</CFOUTPUT> characters long.
		Please enter a longer string, select fewer characters to remove, or
		begin earlier in the string.
	<CFELSE>
		<CFOUTPUT>
		<P>Your original string: 	#form.myString#
		<P>Your modified string:	#RemoveChars(form.myString, form.start, form.numChars)#
		</CFOUTPUT>
	</CFIF>
</CFIF>

<CFFORM ACTION="removechars.cfm" METHOD="POST">
<P>Enter a string:<INPUT TYPE="Text" NAME="myString" VALUE="This is my string">
<P>The number of characters to remove: <CFINPUT TYPE="Text" NAME="numChars" VALUE="3" VALIDATE="integer" REQUIRED="Yes">
<P>The place in the string to start: <CFINPUT TYPE="Text" NAME="start" VALUE="3" VALIDATE="integer" REQUIRED="Yes">
<P><INPUT TYPE="Submit" NAME="">
</CFFORM>

</BODY>
</HTML>       
