RightRight ( string , count ) Description
Gets a specified number of
Example<cfset exampleString = "(303)455-5000 ext:310"> <cfoutput> The extension number is: #Right(exampleString, 3)# </cfoutput> |
RJustifyRJustify ( string , length ) Description
Right-justifies
Example<cfset exampleString = "right justified"> <cfoutput> The example string right justified: #RJustify(exampleString, 30)# </cfoutput> |
Round
Round (
number
)
Description
Rounds a number to the
Example<cfoutput> 10.49 stays at 10: #Round(10.49)# 10.51 goes to 11: #Round(10.51)# </cfoutput> |
RTrim
RTrim (
string
)
DescriptionDeletes spaces from the end of a string. Example<cfset exampleString = "This string has spaces at the end. "> <cfoutput> The trimmed string: "#Rtrim(exampleString)#" </cfoutput> |
Second
Second (
date
)
DescriptionExtracts the seconds from a date/time object. Example<cfoutput> The current second #Second(Now())# of the day. </cfoutput> |
SetEncodingSetEncoding ( scope_name , charset ) Description
For when the locale is anything except English, this sets the character encoding of form scope variable values.
Scope
Example
In this example an example form is set and we are
<form action="example.cfm" method="post">
Name: <input type="text" name="exampleName">
Address: <input type="text" name="exampleAddress">
City: Name: <input type="text" name="exampleCity">
</form>
<form name="exampleForm" action="example.cfm" method="post">
Name: <input type="text" name="exampleName">
Address: <input type="text" name="exampleAddress">
City: Name: <input type="text" name="exampleCity">
</form>
<cfscript>
setEncoding("exampleForm", "SHIFT-JIS");
newName = "#exampleForm.exampleName#";
newAddress = "#exampleForm.exampleAddress#";
newCity = "#exampleForm.exampleCity#";
</cfscript>
|
SetLocale
SetLocale (
new_locale
)
DescriptionSets a country/language locale option for the current application session. The locale value encapsulates a set of attributes that determines the default display format of date, time, number, and currency values, according to language and regional conventions. Locales include the following:
Example
<cfset tempLocale = SetLocale("Portuguese (Standard)")>
<cfoutput>
The locale is now set to: #GetLocale()#
</cfoutput>
|