RJustify

Description

Returns right-justified string in the specified field length.

Category

String functions

Syntax

RJustify(string, length) 

See also

CJustify, LJustify

Parameters

Parameter
Description
string
String to right-justify
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>