Returns right-justified string in the specified field length. To justify the string, RJustify adds padding to the left of the string.
See also CJustify and LJustify.
RJustify(string, length)
String to be right-justified.
Length of field.
<!--- This example shows how to use RJustify ---> <CFIF NOT IsDefined("jstring")> <CFSET jstring=""> </CFIF> <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>