home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / rtrim.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  606 b   |  37 lines

  1. <!--- This example shows the use of RTrim --->
  2. <HTML>
  3.  
  4. <HEAD>
  5. <TITLE>
  6. RTrim Example
  7. </TITLE>
  8. </HEAD>
  9.  
  10. <BODY bgcolor=silver>
  11.  
  12. <H3>RTrim Example</H3>
  13.  
  14. <CFIF IsDefined("form.myText")>
  15. <CFOUTPUT>
  16. <PRE>
  17. Your string:    "#form.myText#"
  18. Your string:    "#Rtrim("#form.myText#")#"
  19. (right trimmed)
  20. </PRE>
  21. </CFOUTPUT>
  22.  
  23. </CFIF>
  24.  
  25. <FORM ACTION="rtrim.cfm" METHOD="POST">
  26. <P>Type in some text, and it will be modified
  27. by Rtrim to remove leading spaces from the right
  28. <P><INPUT TYPE="Text" NAME="myText" VALUE="TEST     ">
  29.  
  30. <P><INPUT TYPE="Submit" NAME="">
  31. </FORM>
  32.  
  33.  
  34. </BODY>
  35.  
  36. </HTML>       
  37.