RJustify

Returns right-justified string in the specified field length.

See also CJustify and LJustify.

Syntax

RJustify(string, length)
string

String to be right-justified.

length

Length of field.

Example

<!--- This example shows how to use RJustify --->
<CFPARAM NAME="jstring" DEFAULT="">

<CFIF IsDefined("FORM.justifyString")>
    <CFSET jstring = Rjustify(FORM.justifyString, 35)>
</CFIF>
<HTML>
<HEAD>
<TITLE>
RJustify Example
</TITLE>
</HEAD>

<BODY BGCOLOR=silver>
<H3>RJustify Function</H3>

<P>Enter a string, and it will be right justified within
the sample field

<FORM ACTION="rjustify.cfm" METHOD="POST">
<P><INPUT TYPE="Text" VALUE="<CFOUTPUT>#jString#</CFOUTPUT>" size=35 
NAME="justifyString">

<P><INPUT TYPE="Submit" NAME=""> <INPUT TYPE="RESET">
</FORM>

</BODY>
</HTML>       



1