<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>RJUSTIFY</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="Description">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">RJUSTIFY</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Description</span>
<p>
Right justifies characters of a string. 
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Returns</span>
<p>
A copy of a string, right-justified in the specified field length.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Category</span>
<p>
Display and formatting functions, String functions
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Function syntax</span><pre>RJustify(string, length)
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">See also</span>
<p>
CJustify, LJustify
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Parameters</span>
<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Example</span><pre>&lt;!--- This example shows how to use RJustify ---&gt;
&lt;cfparam name = &quot;jstring&quot; default = &quot;&quot;&gt;

&lt;cfif IsDefined(&quot;FORM.justifyString&quot;)&gt;
   &lt;cfset jstring = rjustify(FORM.justifyString, 35)&gt;
&lt;/cfif&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;RJustify Example&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h3&gt;RJustify Function&lt;/h3&gt;
&lt;p&gt;Enter a string. It will be right justified within the sample field

&lt;form action = &quot;rjustify.cfm&quot;&gt;
&lt;p&gt;&lt;input type = &quot;Text&quot; value = &quot;&lt;cfoutput&gt;#jString#&lt;/cfoutput&gt;&quot;
size = 35 name = &quot;justifyString&quot;&gt;

&lt;p&gt;&lt;input type = &quot;Submit&quot; name = &quot;&quot;&gt; &lt;input type = &quot;reset&quot;&gt;
&lt;/form&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="STRING">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">STRING</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>A string enclosed in quotation marks, or a variable that contains one.</p>

  </td>
  </tr>
  </table>
</div>
<div id="LENGTH">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">LENGTH</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>A positive integer or a variable that contains one. Length of field in which to justify string.</p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
