| ColdFusion MX | ||
| 目 次 > CFML リファレンス > ColdFusion 関数 > RJustify |
|
|
|
|
||
文字列内の文字を右揃えにします。
指定した長さのフィールド内で右揃えにした文字列のコピー
RJustify(string,length)
パラメータ |
説明 |
|---|---|
string |
引用符で囲まれた文字列、またはそのような文字列を含んでいる変数です。 |
length |
正の整数、または正の整数を含んでいる変数です。文字列を右揃えにするためのフィールドの長さです。 |
<!--- この例は、RJustify の使用方法を示しています。 --->
<cfparam name = "jstring" default = "">
<cfif IsDefined("FORM.justifyString")>
<cfset jstring = rjustify(FORM.justifyString, 35)>
</cfif>
<html>
<head>
<title>RJustify の例</title>
</head>
<body>
<h3>RJustify 関数</h3>
<p>文字列を入力してください。その文字列を、サンプルフィールド内で右揃えにします。
<form action = "rjustify.cfm">
<p><input type = "Text" value = "<cfoutput>#jString#</cfoutput>"
size = 35 name = "justifyString">
<p><input type = "Submit" name = ""> <input type = "reset">
</form>
|
|
||
| 目 次 > CFML リファレンス > ColdFusion 関数 > RJustify |
|
|
このページに新しいコメントが追加された場合に、電子メールでの通知を希望する。 | コメントレポート
現在のページ: http://livedocs.adobe.com/coldfusion/6.1_jp/htmldocs2/functa75.htm