You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

文字列を右に調整
String組み込みファンクション (PRIM_LIBI.ICommonStringIntrinsics) のメンバ

パラメータ

名前

タイプ

データタイプ

記述

Result

*Result (任意)

文字列

右調整の結果

Length

*Input (任意)

整数

右調整の幅(バイト)

Pad

*Input (任意)

文字列

結果内のブランクを置き換える埋め込み文字

詳細


RightAdjust は、文字列の値を、 Length パラメータで指定された長さまたは文字列の長さのいずれか短い長さの分だけ右に移動します。値の左側は、Pad パラメータで指定された文字で埋められます。 Pad パラメータが指定されていない場合は、ブランクで埋められます。


次の 2 つのフィールド定義を使用する
define field(#source) type(*string) length(10)
define field(#target) type(*string) length(10)
In this example, #target will be set to " abc".
#source := "abc"
#target := #source.RightAdjust
In this example, #target will be set to "xxabc".
#source := "abc"
#target := #source.RightAdjust( 5, "x" )

参照

すべてのコンポーネント クラス
テクニカルリファレンス

  • No labels